private void imageButton6_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.Black)
            {
                But.ButtonColor = Color.Lime;
            }
            else
            {
                But.ButtonColor = Color.Black;
            }

            mControl.GetIO.TestOKOnOff = (But.ButtonColor == Color.Black) ? false : true;
            return;
        }
        private void imageButton9_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.Black)
            {
                But.ButtonColor = Color.Red;
            }
            else
            {
                But.ButtonColor = Color.Black;
            }

            mControl.GetIO.SetIgn1 = (But.ButtonColor == Color.Black) ? false : true;
            return;
        }
Exemple #3
0
        private void imageButton8_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.DeepPink)
            {
                But.ButtonColor = Color.Black;
            }
            else
            {
                But.ButtonColor = Color.DeepPink;
            }

            mControl.GetIO.SetPinConnection = (But.ButtonColor == Color.DeepPink) ? true : false;
            return;
        }
Exemple #4
0
        private void imageButton4_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.Red)
            {
                But.ButtonColor = Color.Black;
            }
            else
            {
                But.ButtonColor = Color.Red;
            }

            mControl.GetIO.RedLampOnOff = (But.ButtonColor == Color.Red) ? true : false;
            return;
        }
Exemple #5
0
        private void imageButton3_Click(object sender, EventArgs e)
        {
            //TEST ING
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.DeepPink)
            {
                But.ButtonColor = Color.Black;
            }
            else
            {
                But.ButtonColor = Color.DeepPink;
            }

            mControl.GetIO.TestINGOnOff = (But.ButtonColor == Color.DeepPink) ? true : false;
        }
Exemple #6
0
        private void imageButton22_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.Black)
            {
                But.ButtonColor = Color.Red;
            }
            else
            {
                But.ButtonColor = Color.Black;
            }

            mControl.GetIO.PinConnectionOnOff = (But.ButtonColor == Color.Black) ? false : true;
            mControl.CanOpenClose             = (But.ButtonColor == Color.Black) ? false : true;
            return;
        }
Exemple #7
0
        private void imageButton1_Click(object sender, EventArgs e)
        {
            //제품감지
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.DeepPink)
            {
                But.ButtonColor = Color.Black;
            }
            else
            {
                But.ButtonColor = Color.DeepPink;
            }

            mControl.GetIO.ProductInOut = (But.ButtonColor == Color.DeepPink) ? true : false;

            return;
        }
Exemple #8
0
        private void imageButton8_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.Black)
            {
                But.ButtonColor = Color.Red;
            }
            else
            {
                But.ButtonColor = Color.Black;
            }

            if (But.ButtonColor == Color.Black)
            {
                knob1.Value.AsDouble         = 0;
                switchLever1.Value.AsBoolean = false;

                imageButton9.ButtonColor  = Color.Black;
                imageButton10.ButtonColor = Color.Black;
                mControl.공용함수.timedelay(100);
                //mControl.GetIO.SetIgn1 = false;
                //mControl.GetIO.SetIgn2 = false;
                //mControl.공용함수.timedelay(100);
                //mControl.GetIO.SetPSeatBatt = false;
                mControl.GetIO.SeatPowerOnOff = false;
            }
            else
            {
                knob1.Value.AsDouble         = 13.6;
                switchLever1.Value.AsBoolean = true;

                imageButton9.ButtonColor  = Color.Red;
                imageButton10.ButtonColor = Color.Red;
                mControl.공용함수.timedelay(100);
                //mControl.GetIO.SetPSeatBatt = true;
                ////mControl.공용함수.timedelay(100);
                //mControl.GetIO.SetIgn1 = true;
                //mControl.GetIO.SetIgn2 = true;
                mControl.GetIO.SeatPowerOnOff = true;
            }
            return;
        }
Exemple #9
0
        private void imageButton30_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;
            if (But.ButtonColor == Color.Red)
            {
                But.ButtonColor = Color.Black;
            }
            else
            {
                But.ButtonColor = Color.Red;
            }

            if (But.ButtonColor == Color.Red)
            {
                mControl.GetCanReWrite.ModelTypeToRelax = CanMap.MODELTYPE.RELAX;
            }
            else
            {
                mControl.GetCanReWrite.ModelTypeToRelax = CanMap.MODELTYPE.NOT_RELAX;
            }
            return;
        }
Exemple #10
0
        private void imageButton10_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.Red)
            {
                But.ButtonColor = Color.Black;
            }
            else
            {
                But.ButtonColor = Color.Red;
            }

            if (But.ButtonColor == Color.Red)
            {
                mControl.GetIO.SetDoorOpen = true;
            }
            else
            {
                mControl.GetIO.SetDoorOpen = false;
            }
            return;
        }
Exemple #11
0
        private void imageButton27_Click(object sender, EventArgs e)
        {
            UserImageButton.ImageButton But = sender as UserImageButton.ImageButton;

            if (But.ButtonColor == Color.Black)
            {
                But.ButtonColor = Color.Red;
            }
            else
            {
                But.ButtonColor = Color.Black;
            }
            if (But.ButtonColor == Color.Red)
            {
                knob1.Value.AsDouble         = 13.6;
                switchLever1.Value.AsBoolean = true;
            }
            else
            {
                knob1.Value.AsDouble         = 0;
                switchLever1.Value.AsBoolean = false;
            }
            return;
        }