using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; namespace Server_Dashboard { /// /// View Model for the modules /// class DashboardModuleViewModel : BaseViewModel { //List with all Modules inside public ObservableCollection Modules { get; set; } //Creates Default Modules, remove before release and when implementing the actual data comming from the socket public DashboardModuleViewModel() { Modules = new ObservableCollection(); for (int i = 0; i < 10; i++) { Modules.Add(new DashboardModule(true) { ModuleName = "TestModule", Creator = "Username", ModuleIcon = "../../Assets/Images/PlaceHolderModuleLight.png", CreationDate = DateTime.Now.ToString(), ServerInfo = new ServerInformation() { GpuUsage = "20", CpuUsage = "20", CpuTemp = "88.88", DeployDate = DateTime.Now.ToString(), GpuTemp = "69.69", ServerName = "Ubuntu", OSUserName = "crylia " + i, PrivateIpAdress = "192.168.1.1", PublicIpAdress = "85.69.102.58", Uptime = DateTime.Now.ToString() } }); } } } }