Exemplo n.º 1
0
        public MainForm()
        {
            InitializeComponent();

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