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; }
public PerfomanceUI() { InitializeComponent(); //Get guid schems PowerID = PowerPC.getPowerGuids(); //Bind buttons on tray BindControls(); }