Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            var quality = (double)numericUpDown7.Value;
            var time    = (double)numericUpDown9.Value;

            var task = Task.Run(() =>
            {
                MotionHelper.ReDispensing();
                //MotionHelper.PumpMotion(quality, time);
            });
        }
Exemplo n.º 2
0
        private void btnDispensing_Click(object sender, EventArgs e)
        {
            //  MotionHelper.Dispensing();
            var quality = (double)numericUpDown7.Value;
            var time    = (double)numericUpDown9.Value;

            Global.Pumpdata.Calculation(quality, time, Global.A.Position);
            var task = Task.Run(() =>
            {
                if (label1.Text == "齿轮泵")
                {
                    MotionHelper.Dispensing(Global.Pumpdata);
                }
                else
                {
                    MotionHelper.Dispensing(time);
                }

                //  MotionHelper.PumpMotion();
            });
        }