radial progressbar

This commit is contained in:
Rene Schwarz
2021-04-14 00:53:57 +02:00
parent cf7b9abcf0
commit e220c09ec3
61 changed files with 2449 additions and 262 deletions

View File

@@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace Server_Dashboard {
class DashboardModuleViewModel : BaseViewModel {
public ObservableCollection<DashboardModule> ModuleList { get; set; }
public DashboardModuleViewModel() {
ModuleList = new ObservableCollection<DashboardModule>();
for (int i = 0; i < 10; i++) {
ModuleList.Add(new DashboardModule(false) {
ModulName = "TestModule",
Creator = "Username",
ModuleIcon = "../../Assets/Images/PlaceHolderModuleLight.png",
ServerInfo = new ServerInformation() {
CpuTemp = "88.88",
DeployDate = DateTime.Now.ToString(),
GpuTemp = "69.69",
HostName = "crylia",
OSHostName = "Ubuntu",
PrivateIpAdress = "192.168.1.1",
PublicIpAdress = "85.69.102.58",
Uptime = DateTime.Now.ToString()
}
});
}
}
}
}

View File

@@ -1,26 +0,0 @@
using Server_Dashboard.Views.DashboardPages.ModuleCRUD;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
namespace Server_Dashboard {
class DashboardModuleViewModel : BaseViewModel {
public string ModuleName { get; set; }
public string StatusIndicator { get; set; }
public string StatusIndicatorBG { get; set; }
public string ServerName { get; set; }
public string HostName { get; set; }
public string CpuTemp { get; set; }
public string GpuTemp { get; set; }
public string Uptime { get; set; }
public string DeployDate { get; set; }
public string PublicIpAdress { get; set; }
public string PrivateIpAdress { get; set; }
public string OSHostName { get; set; }
}
}