public bool Get_Status() { string text = Globals.Tags.MagneticDoorSwitch.Value.ToString(); MessageBoxCF db = new MessageBoxCF(Text.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBoxCF db1 = new MessageBoxCF(Text2.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBoxCF db2 = new MessageBoxCF(t_Door.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBoxCF db3 = new MessageBoxCF(Text6.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (Globals.Tags.Testing_Proc.Value || Globals.Tags.Automatic_Washing.Value) { db.Show(); Globals.Tags.Manuel_Washing.ResetTag(); } else if (Globals.Tags.ManWashTime.Value < 1) { db1.Show(); Globals.Tags.Manuel_Washing.ResetTag(); } else if (checkDoor()) { db2.Show(); Globals.Tags.Manuel_Washing.ResetTag(); } return(Globals.Tags.Manuel_Washing.Value); }
void an_WaterLevel_ValueChanged(System.Object sender, Core.Api.DataSource.ValueChangedEventArgs e) { MessageBoxCF db = new MessageBoxCF(t_Level.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (!Globals.Tags.WaterLevelSwitch.Value) { db.Show(); Globals.Tags.Water_Heater.ResetTag(); } }
public bool Get_Status() { MessageBoxCF db = new MessageBoxCF(Text.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (Globals.Tags.Automatic_Washing.Value) { db.Show(); Globals.Tags.Testing_Proc.ResetTag(); } return(Globals.Tags.Testing_Proc.Value); }
void LoginButton_Click(System.Object sender, System.EventArgs e) { MessageBoxCF db = new MessageBoxCF(Text2.Text, Text1.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (Password_Num.Value.ToString() == "1998") { Password_Num.Value = 0; Globals.Admin_Page.Show(); } else { db.Show(); } }
void Drying_Start_Click(System.Object sender, System.EventArgs e) { Toggle_Status(); bool status = Get_Status(); Globals.Tags.DryingTimer.Value = Globals.Tags.Drying_Time.Value * 60; MessageBoxCF db = new MessageBoxCF(Text2.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBoxCF db1 = new MessageBoxCF(Text.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (status) { if (Globals.Tags.DryingTimer.Value > 0) { if (Globals.Tags.Air_Heater_Set.Value > 49) { if (Globals.Tags.Air_Heater_Set.Value < 126) { Set_Status(); DryingScript.Start(); } else { db1.Show(); Reset_Status(); } } else { db1.Show(); Reset_Status(); } } else { db.Show(); Reset_Status(); } } else { Reset_Status(); DryingScript.Stop(); } }
public bool Get_Status() { MessageBoxCF db = new MessageBoxCF(Text.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBoxCF db1 = new MessageBoxCF(this.t_Door.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); MessageBoxCF db2 = new MessageBoxCF(Text6.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (Globals.Tags.Testing_Proc.Value) { db.Show(); Globals.Tags.Automatic_Washing.ResetTag(); } else if (checkDoor()) { db1.Show(); Globals.Tags.Automatic_Washing.ResetTag(); } return(Globals.Tags.Automatic_Washing.Value); }
void Heater_Button_Click(System.Object sender, System.EventArgs e) { MessageBoxCF db = new MessageBoxCF(t_Level.Text, Text4.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); if (!Globals.Tags.Water_Heater.Value) { if (!Globals.Tags.WaterLevelSwitch.Value) { db.Show(); Globals.Tags.Water_Heater.ResetTag(); } else { Globals.Tags.Water_Heater.SetTag(); } } else { Globals.Tags.Water_Heater.ResetTag(); } }