private void AppSetting_Load(object sender, EventArgs e) { DeviceOutput = GlobalProperties.ModbusOutput != null ? GlobalProperties.ModbusOutput : null; bool ModeIndicator = GlobalProperties.Configuration.IndicatorOnly; bool ModeDebug = GlobalProperties.Configuration.IsDebugging; bool ManualState = GlobalProperties.ManualState; rbIndicator.Checked = ModeIndicator ? true : false; rbDebug.Checked = ModeDebug ? true : false; rbRelease.Checked = !ModeDebug && !ModeIndicator ? true : false; rbManualOn.Checked = ManualState; cbPropeler.Checked = GlobalProperties.AllowPropeler; cbCoolant.Checked = GlobalProperties.ManualCoolant; cbWater.Checked = GlobalProperties.ManualWater; }
public Changedrum() { InitializeComponent(); Region = System.Drawing.Region.FromHrgn(Actions.CreateRoundRectRgn(0, 0, Width, Height, 25, 25)); Actions.RecenterLocation(this); Transition t1 = new Transition(new TransitionType_Bounce(500)); t1.add(this, "Top", this.Location.Y + 15); Transition.runChain(t1); DeviceInput = PublicProperties.DevicesInput[0]; DeviceOutput = PublicProperties.DevicesOutput[0]; AddToDict(); Step(0); pbNext.Visible = true; }
public Changedrum() { InitializeComponent(); Region = System.Drawing.Region.FromHrgn(Actions.CreateRoundRectRgn(0, 0, Width, Height, 25, 25)); Actions.SetDoubleBuffered(this); Actions.RecenterLocation(this); Transition t1 = new Transition(new TransitionType_Bounce(500)); t1.add(this, "Top", this.Location.Y + 15); Transition.runChain(t1); DeviceInput = GlobalProperties.ModbusInput; DeviceOutput = GlobalProperties.ModbusOutput; AddToDict(); Step(0); pbNext.Visible = true; // Set Changedrum Flag GlobalProperties.FLAG_CHANGEDRUM = true; }