Files
Server-Dashboard/Server Dashboard/ViewModels/Dashboard/DashboardModuleViewModel.cs
Rene Schwarz 981ad26b1b t
2021-04-19 06:35:17 +02:00

32 lines
1.2 KiB
C#

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