Exemple #1
0
        private void btnSelectGPU_Click(object sender, EventArgs e)
        {
            string GPUId = FrSelectMSIGPU.SelectGPU(this, txtGPUId.Text);

            if (GPUId != "")
            {
                txtGPUId.Text = GPUId;
            }
        }
Exemple #2
0
        private void gPUInfoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string GPUId = FrSelectMSIGPU.SelectGPU(this, "");

            Log.Clear();

            if (GPUId != "")
            {
                GPUInfo          gPUInfo  = new GPUInfo(GPUId);
                OHGPUInformation OHGPUInf = gPUInfo.OHGPUInf;
                Log.Wrl("GPUIndex       : " + OHGPUInf.GPUIndex);
                Log.Wrl("CoreClock      : " + OHGPUInf.CoreClock);
                Log.Wrl("MemoryClock    : " + OHGPUInf.MemoryClock);
                Log.Wrl("ControlFan     : " + OHGPUInf.ControlFan);
                Log.Wrl("CoreTemperature: " + OHGPUInf.CoreTemperature);
            }
        }
        static public string SelectGPU(IWin32Window owner = null, string OldGpuId = "")
        {
            string result = "";

            using (FrSelectMSIGPU frSelectMSIGPU = new FrSelectMSIGPU())
            {
                frSelectMSIGPU.oldGPUId = OldGpuId;

                frSelectMSIGPU.Reload();

                if (frSelectMSIGPU.ShowDialog(owner) == DialogResult.OK)
                {
                    result = frSelectMSIGPU.CurrentGUIDId;
                }
            }

            return(result);
        }