Exemple #1
0
        public MainForm()
        {
            InitializeComponent();

            textBox1.Text = Resources.MainForm_Loading;
            textBox1.Text = InfoUtil.GetOsInformation();
        }
Exemple #2
0
 private void button5_Click(object sender, EventArgs e)
 {
     textBox1.Text = Resources.MainForm_Loading;
     textBox1.Text = InfoUtil.GetRamInformation();
 }
Exemple #3
0
 public static string GetCpuInformation()
 {
     return(InfoUtil.GetDeviceInformation("Win32_Processor"));
 }
Exemple #4
0
 public static string GetOsInformation()
 {
     return(InfoUtil.GetDeviceInformation("Win32_OperatingSystem"));
 }
Exemple #5
0
 public static string GetRamInformation()
 {
     return(InfoUtil.GetDeviceInformation("Win32_PhysicalMemory"));
 }
Exemple #6
0
 public static string GetDiskInformation()
 {
     return(InfoUtil.GetDeviceInformation("Win32_DiskDrive"));
 }
Exemple #7
0
 public static string GetGpuInformation()
 {
     return(InfoUtil.GetDeviceInformation("Win32_VideoController"));
 }