New UI (not wired up)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using System.Text;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
@@ -15,8 +16,11 @@ public abstract partial class ServerItemViewModel : ObservableObject
|
||||
Id = server.Id;
|
||||
DefaultTitle = server.DefaultTitle;
|
||||
Title = server.Title;
|
||||
ConnectionString = server.ConnectionString;
|
||||
Region = server.Region;
|
||||
ConnectionString = server.ConnectionString;
|
||||
IsDeleted = server.IsDeleted;
|
||||
IsDisabled = server.IsDisabled;
|
||||
Tags = new ObservableCollection<string>(server.Tags);
|
||||
}
|
||||
|
||||
public int Id
|
||||
@@ -68,4 +72,16 @@ public abstract partial class ServerItemViewModel : ObservableObject
|
||||
}
|
||||
|
||||
public ObservableCollection<string> Tags { get; } = [];
|
||||
|
||||
[ObservableProperty]
|
||||
public partial bool IsDeleted
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
|
||||
[ObservableProperty]
|
||||
public partial bool IsDisabled
|
||||
{
|
||||
get; set;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user