Ejemplo n.º 1
0
        private void swUnlock_Click(object sender, EventArgs e)
        {
            ImgSwitch swBtn = sender as ImgSwitch;

            if (this.mParamUnlock)
            {
                return;
            }

            if (!swBtn.IsCheck)
            {
                Calculator myCal = new Calculator();
                myCal.InitStrNum = "";
                myCal.IsSercet   = true;
                myCal.MaxValue   = double.MaxValue;
                myCal.MinValue   = 0;
                myCal.ShowDialog();

                string KeyBoard_Val = myCal.LastNumber.ToString();
                myCal.Dispose();

                if (KeyBoard_Val == "1058")
                {
                    xModify.Enabled   = true;
                    yModify.Enabled   = true;
                    zModify.Enabled   = true;
                    xModify.ForeColor = Color.Black;
                    yModify.ForeColor = Color.Black;
                    zModify.ForeColor = Color.Black;
                    this.mParamUnlock = true;
                    swBtn.SwitchClick();
                }
            }
        }
Ejemplo n.º 2
0
        private void ibSwitch_Click(object sender, EventArgs e)
        {
            ImgSwitch imgBtn = sender as ImgSwitch;

            imgBtn.SwitchClick();
            flowDrawManager.ModeChange = imgBtn.IsCheck;
        }
Ejemplo n.º 3
0
        private void MoveTypeChange_Click(object sender, EventArgs e)
        {
            ImgSwitch imBtn = sender as ImgSwitch;

            imBtn.SwitchClick();
            if (imBtn.IsCheck)
            {
                shapeOperManager.MoveType = MoveType.MoveShape;
            }
            else
            {
                shapeOperManager.MoveType = MoveType.MoveShapeSelectPoint;
            }

            picDrawBackGround.Image = shapeOperManager.GetShapeBitmap();
        }
Ejemplo n.º 4
0
        private void MachineTestData_Click(object sender, EventArgs e)
        {
            ImgSwitch imageButton = sender as ImgSwitch;
            bool      Switch_Sta  = false;

            if (imageButton.Name == "ibCarry")
            {
                if (ibPressure.IsCheck == true && ibCarry.IsCheck == false)
                {
                    return;
                }
            }
            imageButton.SwitchClick();
            Switch_Sta = imageButton.IsCheck;

            switch (imageButton.Name)
            {
            case "ibCut":
                ScreenStatueData.ScreenStatueDataEX.CutLine = Switch_Sta;
                break;

            case "ibBlow":
                ScreenStatueData.ScreenStatueDataEX.BlowCloth = Switch_Sta;
                break;

            case "ibClamp":
                ScreenStatueData.ScreenStatueDataEX.ClampCloth = Switch_Sta;
                break;

            case "ibCarry":
                ScreenStatueData.ScreenStatueDataEX.CarryCloth = Switch_Sta;
                break;

            case "ibPressure":
                ScreenStatueData.ScreenStatueDataEX.PressCloth = Switch_Sta;
                break;

            case "ibCatch":
                ScreenStatueData.ScreenStatueDataEX.LiftCloth = Switch_Sta;
                break;
            }
        }