private void timer1_Tick(object sender, EventArgs e) { testByWinRing0.InitSuperIO(); String chipname = testByWinRing0.GetChipName(); chip_name.Text = chipname; testByWinRing0.InitEc(); fan_ram.Text = "" + testByWinRing0.GetFanRpm(); int temp = this.testByWinRing0.CpuTemp(); this.label3.Text = temp.ToString(); }
private void Init_Driver() { testByWinRing0 = new TestByWinRing0(); bool initResult = testByWinRing0.Initialize(); if (!initResult) { label1.Text = "初始化失败!"; label1.ForeColor = System.Drawing.Color.Red; } else { label1.Text = "初始化成功!"; testByWinRing0.InitSuperIO(); String chipname = testByWinRing0.GetChipName(); chip_name.Text = chipname; testByWinRing0.InitEc(); fan_ram.Text = "" + testByWinRing0.GetFanRpm(); } }