コード例 #1
0
 private void BindControls()
 {
     stButExit.Click   += (e, f) => { this.Close(); };
     stButMiddle.Click += (e, f) => { PowerPC.setPowerState(PowerID[0]); };
     stButMax.Click    += (e, f) => { PowerPC.setPowerState(PowerID[1]); };
     stButMin.Click    += (e, f) => { PowerPC.setPowerState(PowerID[2]); };
     lbTitle.MouseMove += PanelTop_MouseMove;
 }
コード例 #2
0
 public PerfomanceUI()
 {
     InitializeComponent();
     //Get guid schems
     PowerID = PowerPC.getPowerGuids();
     //Bind buttons on tray
     BindControls();
 }