Example #1
0
        public SVOForm(bool showExit = true)
        {
            InitializeComponent();
            if (!showExit)
            {
                this.btnExit.Visible = false;
            }
            this.MinimizeBox   = false;
            this.MaximizeBox   = false;
            this.MaximumSize   = this.Size;
            this.MinimumSize   = this.Size;
            this.StartPosition = FormStartPosition.CenterScreen;
            Instance           = this;

            DataSetting.Load();
            this.LoadStepState();

            if (Machine.Instance.Setting.ValveSelect == ValveSelection.单阀)
            {
                this.tlpTaskVavel2.Hide();
                this.toxOffsetX.Hide();
                this.toxOffsetY.Hide();
                this.toxOffsetZ.Hide();
                this.lelOffsetXY.Hide();
                this.lelOffsetZ.Hide();
            }

            this.ReadLanguageResources();
        }
Example #2
0
 public static void Load()
 {
     Default = JsonUtil.Deserialize <DataSetting>(typeof(DataSetting).Name + ".ds");
     if (Default == null)
     {
         Default = new DataSetting();
     }
 }
Example #3
0
 private void SettingTest_Load(object sender, EventArgs e)
 {
     DataSetting.Load();
     if (DataSetting.Default.IsReStart)
     {
         this.checkBox1.Checked = true;
     }
     else
     {
         this.checkBox1.Checked = false;
     }
 }
Example #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.checkBox1.Checked)
            {
                DataSetting.Default.IsReStart = true;
            }
            else
            {
                DataSetting.Default.IsReStart = false;
            }

            DataSetting.Save();
        }
Example #5
0
        private void SVOForm_Load(object sender, EventArgs e)
        {
            //读取设置文件
            DataSetting.Load();
            //Machine.Instance.Robot.LoadCalibPrm();
            if (DataSetting.Default.VavelNo == 1)
            {
                this.tabVavel2.Hide();
            }

            this.chkSoftLimitZ.BackColor         = Color.CornflowerBlue;
            this.chkVavel2NeedleCamera.BackColor = Color.CornflowerBlue;
            this.toxOffsetZ.Text = Machine.Instance.Robot.CalibPrm.ValveZOffset2to1.ToString();
            this.toxOffsetX.Text = Machine.Instance.Robot.CalibPrm.ValveXYOffset2to1.X.ToString();
            this.toxOffsetY.Text = Machine.Instance.Robot.CalibPrm.ValveXYOffset2to1.Y.ToString();
        }
Example #6
0
 private void btnReset_Click(object sender, EventArgs e)
 {
     clickSts0.IsDone  = false; clickSts1.IsDone = false; clickSts2.IsDone = false;
     clickSts3.IsDone  = false; clickSts4.IsDone = false; clickSts5.IsDone = false;
     clickSts6.IsDone  = false; clickSts7.IsDone = false; clickSts8.IsDone = false;
     clickSts9.IsDone  = false; clickSts10.IsDone = false; clickSts11.IsDone = false;
     clickSts12.IsDone = false; clickSts13.IsDone = false; clickSts14.IsDone = false;
     for (int i = 0; i < this.tlpTaskVavel1.RowCount; i++)
     {
         ((CheckBox)this.tlpTaskVavel1.GetControlFromPosition(0, i)).Checked = false;
     }
     for (int i = 0; i < this.tlpTaskVavel2.RowCount; i++)
     {
         ((CheckBox)this.tlpTaskVavel2.GetControlFromPosition(0, i)).Checked = false;
     }
     DataSetting.Default.DoneStepCount = 0;
     DataSetting.Save();
 }
Example #7
0
 public void Save()
 {
     DataSetting.Save();
 }
Example #8
0
 private SvoSetting()
 {
     DataSetting.Load();
 }