finish create module form

This commit is contained in:
Rene Schwarz
2021-08-09 00:26:03 +02:00
parent f8f28984a5
commit a4a944f0c6
62 changed files with 864 additions and 412 deletions

View File

@@ -1,26 +1,36 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Media.Imaging;
namespace Server_Dashboard {
/// <summary>
/// Dashboard Module class that holds all the information that gets displayed
/// </summary>
class DashboardModule {
internal class DashboardModule {
//The name the user gives the module
public string ModuleName { get; set; }
//The user who created it
public string Creator { get; set; }
//All the information that the server had
public ServerInformation ServerInfo { get; set; }
//The status indicator
public string StatusIndicator { get; set; }
//The background color of the status indicator
public string StatusIndicatorBG { get; set; }
//If the server is avaibale or not
public bool ServerAvailable { get; set; }
//The Module icon the user give the server, defaults to a generic server symbol
public string ModuleIcon { get; set; }
public BitmapImage ModuleIcon { get; set; }
//Creation date with System.DateTime.Now
public string CreationDate { get; set; }
@@ -34,4 +44,4 @@ namespace Server_Dashboard {
StatusIndicatorBG = ServerAvailable ? "#94eeb0" : "#ef9a9a";
}
}
}
}

View File

@@ -1,21 +0,0 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Server_Dashboard.DashboardModules {
/// <summary>
/// The Information the user puts into the CreateNewModule form
/// </summary>
class NewModuleInformation {
//The Name of the Module
public string ModuleName { get; set; }
//The Name of the Server
public string ServerName { get; set; }
//The Username
public string Username { get; set; }
//IPv4 Adress
public string IPAdress { get; set; }
//Port, defaults to 22
public int Port { get; set; }
}
}

View File

@@ -4,30 +4,41 @@ using System.Collections.ObjectModel;
using System.Text;
namespace Server_Dashboard {
/// <summary>
/// Server information class, this will probably scale pretty big later on
/// This will hold all the information the socket will gather
/// </summary>
class ServerInformation {
internal class ServerInformation {
//The ServerName
public string ServerName { get; set; }
//The unix or windows username
public string OSUserName { get; set; }
//Cpu Temp in C
public string CpuTemp { get; set; }
//Gpu Temp in C
public string GpuTemp { get; set; }
//Server uptime
public string Uptime { get; set; }
//When the server was first deployed
public string DeployDate { get; set; }
//Public IPv4 Adress
public string PublicIpAdress { get; set; }
//Private IP adress from the servers network
public string PrivateIpAdress { get; set; }
//GPU usage in %
public string GpuUsage { get; set; }
//CPU usage in %
public string CpuUsage { get; set; }
}
}
}