New UI (not wired up)

This commit is contained in:
2026-09-22 15:23:39 +03:00 Unverified
parent 8ab8dde837
commit 5cb8eee38c
14 changed files with 426 additions and 54 deletions
+17 -1
View File
@@ -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;
}
}