标题:怎样才能把阀打开之后管子才开始流动
只看楼主
追影11
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2013-5-31
结帖率:100%
 问题点数:0 回复次数:0 
怎样才能把阀打开之后管子才开始流动
private bool loadstart = false;
         private void PipeFlow(object o)//启动每个管道流动
        {
            pipe1.Flow_Tick(); pipe2.Flow_Tick();  pipe3.Flow_Tick(); pipe4.Flow_Tick(); pipe5.Flow_Tick(); pipe6.Flow_Tick(); pipe7.Flow_Tick(); pipe8.Flow_Tick(); pipe9.Flow_Tick(); pipe10.Flow_Tick();
            pipe11.Flow_Tick(); pipe12.Flow_Tick(); pipe13.Flow_Tick();  pipe14.Flow_Tick(); pipe15.Flow_Tick(); pipe16.Flow_Tick(); pipe17.Flow_Tick(); pipe18.Flow_Tick(); pipe19.Flow_Tick(); pipe20.Flow_Tick();
         
            pipe21.Flow_Tick(); pipe22.Flow_Tick(); pipe23.Flow_Tick(); pipe24.Flow_Tick(); pipe25.Flow_Tick(); pipe26.Flow_Tick(); pipe27.Flow_Tick(); pipe28.Flow_Tick(); pipe29.Flow_Tick(); pipe30.Flow_Tick();
            pipe31.Flow_Tick(); pipe32.Flow_Tick(); pipe33.Flow_Tick(); pipe34.Flow_Tick(); pipe35.Flow_Tick(); pipe36.Flow_Tick(); pipe37.Flow_Tick(); pipe38.Flow_Tick(); pipe39.Flow_Tick(); pipe40.Flow_Tick();

            pipe41.Flow_Tick(); pipe42.Flow_Tick(); pipe43.Flow_Tick(); pipe44.Flow_Tick(); pipe45.Flow_Tick(); pipe46.Flow_Tick(); pipe47.Flow_Tick(); pipe48.Flow_Tick(); pipe49.Flow_Tick(); pipe50.Flow_Tick();
            pipe51.Flow_Tick(); pipe52.Flow_Tick(); pipe53.Flow_Tick(); pipe54.Flow_Tick(); pipe55.Flow_Tick(); pipe56.Flow_Tick(); pipe57.Flow_Tick(); pipe58.Flow_Tick(); pipe59.Flow_Tick(); pipe60.Flow_Tick();

            pipe61.Flow_Tick(); pipe62.Flow_Tick(); pipe63.Flow_Tick(); pipe64.Flow_Tick(); pipe65.Flow_Tick(); pipe66.Flow_Tick(); pipe67.Flow_Tick(); pipe68.Flow_Tick(); pipe69.Flow_Tick(); pipe70.Flow_Tick();
            pipe71.Flow_Tick(); pipe72.Flow_Tick();

        }
         public void JudgeFlowNo1()//判断进气各个管道流动
         {
             if (loadstart == true)
             {
                 //pipe2.BFlow = pipe4.BFlow = true;
                 if (valve14.Open)
                 {
                     pipe2.BFlow = pipe4.BFlow = true;
                 }
                 else
                 {
                     pipe2.BFlow = pipe4.BFlow = false;
                 }
               


             }
      

         }
         #region 判断各开关valuechange
         private void valve14_valueChanged(object sender, EventArgs e)
         {
             JudgeFlowNo1();
             //Judgev9_v12();//输液臂开关打开前提下 开度开关启用
             //speed();//流速计算

         }
         #endregion

         private void button3_Click(object sender, EventArgs e)
         {

             if (loadstart  == false)
             {
                 loadstart  = true;
                 button3.Text = "暂停";
                 //t1.Enabled = true;
               
             }
             else
             {
                loadstart  = false;
                 button3.Text = "继续";
                 //t1.Enabled = f alse;
               
             }

             JudgeFlowNo1();
         }
搜索更多相关主题的帖子: private void false 
2013-05-31 17:20



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-412679-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.049509 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved