Ionite
1 year ago
6 changed files with 157 additions and 3 deletions
@ -0,0 +1,11 @@
|
||||
using System; |
||||
|
||||
namespace StabilityMatrix.Avalonia.Models.Inference; |
||||
|
||||
/// <summary> |
||||
/// Event for view models requesting to load their view state from a provided state |
||||
/// </summary> |
||||
public class LoadViewStateEventArgs : EventArgs |
||||
{ |
||||
public required ViewState State { get; init; } |
||||
} |
@ -0,0 +1,12 @@
|
||||
using System; |
||||
using System.Threading.Tasks; |
||||
|
||||
namespace StabilityMatrix.Avalonia.Models.Inference; |
||||
|
||||
/// <summary> |
||||
/// Event for view models requesting to get their view state for saving |
||||
/// </summary> |
||||
public class SaveViewStateEventArgs : EventArgs |
||||
{ |
||||
public Task<ViewState>? StateTask { get; set; } |
||||
} |
@ -0,0 +1,13 @@
|
||||
using System.Text.Json.Nodes; |
||||
using System.Text.Json.Serialization; |
||||
|
||||
namespace StabilityMatrix.Avalonia.Models.Inference; |
||||
|
||||
/// <summary> |
||||
/// Model for view states of inference tabs |
||||
/// </summary> |
||||
[JsonSerializable(typeof(ViewState))] |
||||
public class ViewState |
||||
{ |
||||
public string? DockLayout { get; set; } |
||||
} |
Loading…
Reference in new issue