redesign to material standards and clean up some sylings

This commit is contained in:
Rene Schwarz
2021-04-08 03:31:21 +02:00
parent 73f864ea20
commit ca432897af
78 changed files with 1904 additions and 309 deletions

View File

@@ -1,15 +1,37 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
namespace Server_Dashboard {
class DashboardModuleViewModel : BaseViewModel {
public ObservableCollection<DashboardModule> Modules = new ObservableCollection<DashboardModule>();
public DashboardModuleViewModel() {
private ObservableCollection<DashboardModule> modules;
public ObservableCollection<DashboardModule> Modules {
get { return modules; }
set {
if (modules != value)
modules = value;
OnPropertyChanged(nameof(modules));
}
}
public DashboardModuleViewModel() {
Modules = new ObservableCollection<DashboardModule>();
for (int i = 0; i < 1; i++) {
Modules.Add(new DashboardModule() {
Creator = "Ersteller TestUser",
ModulName = "TestName",
ModuleIcon = "../../Assets/Images/PlaceHolderModuleLight.png",
Width = new Random().Next(300, 400),
Height = new Random().Next(100, 400),
});
}
var sort = Modules.OrderBy(h => h.Height).ThenBy(w => w.Width).ToList();
Modules = new ObservableCollection<DashboardModule>(sort);
}
#region Dashboard CRUD
private void CreateDashboard() {