private void button3_Click(object sender, EventArgs e) { this.Hide(); MotherBoard motherBorad_info = new MotherBoard(); motherBorad_info.Show(); }
private void Graphics_Load(object sender, EventArgs e) { CollectingData loadForm = new CollectingData(); loadForm.Show(); int adapterRAM = Convert.ToInt32(CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "AdapterRAM"))) / 1000000000; textBox1.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "Name")); textBox2.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "VideoProcessor")); textBox3.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "AdapterCompatibility")); textBox5.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "AdapterDACType")); textBox6.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "CurrentHorizontalResolution")); textBox7.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "CurrentNumberOfColors")); textBox10.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "CurrentVerticalResolution")); textBox9.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "DriverVersion")); textBox4.Text = "" + adapterRAM + " Gb"; textBox8.Text = MotherBoard.GetDate(CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "DriverDate"))); textBox11.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "CurrentBitsPerPixel")) + " Kb"; textBox13.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "MaxRefreshRate")) + " fps"; textBox12.Text = CPInfo.OutputResult(CPInfo.GetHardwareInfo("Win32_VideoController", "MinRefreshRate")) + " fps"; loadForm.Close(); }