forked from robincornelius/libedssharp
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathODIndexMergeStatus.cs
More file actions
49 lines (39 loc) · 1.12 KB
/
ODIndexMergeStatus.cs
File metadata and controls
49 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using Avalonia.Media;
using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.Generic;
namespace EDSEditorGUI2.ViewModels;
/// <summary>
/// Viewmodel for merging one index
/// </summary>
public partial class ODIndexMergeOffsetStatus : ObservableObject
{
public ODIndexMergeOffsetStatus(int index, bool collision)
{
Index = index;
Collision = collision;
}
[ObservableProperty]
private int _index;
[ObservableProperty]
private bool _collision;
}
/// <summary>
/// Used as a view model when merging ODs or inserting profiles
/// </summary>
public partial class ODIndexMergeStatus : ObservableObject
{
[ObservableProperty]
private bool _insert;
[ObservableProperty]
private string _originalObject = string.Empty;
[ObservableProperty]
private List<ODIndexMergeOffsetStatus> _offsets = [];
[ObservableProperty]
private bool _indexCollision;
[ObservableProperty]
private int _originalIndex;
[ObservableProperty]
public required OdObject _object;
[ObservableProperty]
public IBrush _textBrush = new SolidColorBrush(Colors.Black);
}