..
This commit is contained in:
@@ -47,14 +47,6 @@ namespace Project
|
||||
this.propertyGrid1.SelectedObject = this.dummySetting;
|
||||
this.propertyGrid1.Refresh();
|
||||
|
||||
//Function usage
|
||||
btdoorr1.BackColor = dummySetting.Disable_safty_R0 ? Color.Tomato : Color.Lime;
|
||||
btdoorr2.BackColor = dummySetting.Disable_safty_R1 ? Color.Tomato : Color.Lime;
|
||||
btdoorr3.BackColor = dummySetting.Disable_safty_R2 ? Color.Tomato : Color.Lime;
|
||||
btdoorf1.BackColor = dummySetting.Disable_safty_F0 ? Color.Tomato : Color.Lime;
|
||||
btdoorf2.BackColor = dummySetting.Disable_safty_F1 ? Color.Tomato : Color.Lime;
|
||||
btdoorf3.BackColor = dummySetting.Disable_safty_F2 ? Color.Tomato : Color.Lime;
|
||||
|
||||
btBuz.BackColor = dummySetting.Disable_Buzzer == false ? Color.Lime : Color.Tomato;
|
||||
this.btTWLamp.BackColor = dummySetting.Disable_TowerLamp ? Color.Tomato : Color.Lime;
|
||||
this.btRoomLamp.BackColor = dummySetting.Disable_RoomLight == true ? Color.Tomato : Color.Lime;
|
||||
@@ -213,54 +205,7 @@ namespace Project
|
||||
but.BackColor = dummySetting.Disable_RoomLight == true ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void button4_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_SidQtyCheck = !dummySetting.Disable_SidQtyCheck;
|
||||
but.BackColor = dummySetting.Disable_SidQtyCheck == true ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
private void button2_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_safty_R0 = !dummySetting.Disable_safty_R0;
|
||||
but.BackColor = dummySetting.Disable_safty_R0 ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_safty_R1 = !dummySetting.Disable_safty_R1;
|
||||
but.BackColor = dummySetting.Disable_safty_R1 ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btSafetyP3_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_safty_R2 = !dummySetting.Disable_safty_R2;
|
||||
but.BackColor = dummySetting.Disable_safty_R2 ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btSafetyCvIn_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_safty_F0 = !dummySetting.Disable_safty_F0;
|
||||
but.BackColor = dummySetting.Disable_safty_F0 ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btSafetyCvOut_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_safty_F1 = !dummySetting.Disable_safty_F1;
|
||||
but.BackColor = dummySetting.Disable_safty_F1 ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
private void btLoaderDetect_Click(object sender, EventArgs e)
|
||||
{
|
||||
var but = sender as Button;
|
||||
dummySetting.Disable_safty_F2 = !dummySetting.Disable_safty_F2;
|
||||
but.BackColor = dummySetting.Disable_safty_F2 ? Color.Tomato : Color.Lime;
|
||||
}
|
||||
|
||||
|
||||
private void btLeftVac_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -404,7 +349,7 @@ namespace Project
|
||||
|
||||
private void btOpenZPL_Click(object sender, EventArgs e)
|
||||
{
|
||||
var fi = new System.IO.FileInfo("zpl.txt");
|
||||
var fi = new System.IO.FileInfo( UTIL.MakePath("data","zpl.txt"));
|
||||
if (fi.Exists == false)
|
||||
{
|
||||
System.IO.File.WriteAllText(fi.FullName, Properties.Settings.Default.ZPL7, System.Text.Encoding.Default);
|
||||
|
||||
Reference in New Issue
Block a user