예제 #1
0
        private void PourState_Load(object sender, EventArgs e)
        {
            this.panel1.BackColor = Color.FromArgb(255, 50, 161, 206);
            this.panel2.Width     = this.panel1.Width / 2;
            this.panel4.Height    = (this.panel1.Height - menuStrip1.Height) / 2;
            this.panel6.Height    = (this.panel1.Height - menuStrip1.Height) / 2;
            //this.panel8.Width = this.panel7.Width / 2;


            //得到配置项的值
            steeveForceLimit     = config.Get(ConfigManager.ConfigKeys.steeve_ForceLimit);
            steeveForceDiffLimit = config.Get(ConfigManager.ConfigKeys.steeve_ForceDiffLimit);
            basketupDisLimit     = config.Get(ConfigManager.ConfigKeys.basket_upDisLimit);
            allowDisDiffLimit    = config.Get(ConfigManager.ConfigKeys.basket_allowDisDiffLimit);
            steeveDisLimit       = basketupDisLimit + allowDisDiffLimit;
            steeveDisDiffLimit   = config.Get(ConfigManager.ConfigKeys.steeve_DisDiffLimit);
            anchorForceLimit     = config.Get(ConfigManager.ConfigKeys.anchor_ForceLimit);
            anchorForceDiffLimit = config.Get(ConfigManager.ConfigKeys.anchor_ForceDiffLimit);
            FrontDisLimit        = config.Get(ConfigManager.ConfigKeys.frontPivot_DisLimit);
            // 开始接收数据
            timer1.Enabled = true;
            adamHelper.StartTimer(250);
            dataStoreManager.StartTimer(500, 1000);
            warningManager.BgStart();
        }
예제 #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     warningManager.BgStart();
 }