Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            ControlModel controlModel = ControlModel.getControlModel();

            controlModel.ScadaRealTimeData   = 0;
            controlModel.ScadaWeatherData    = 0;
            controlModel.PredictRealTimeData = 0;
            controlModel.PredictWeatherData  = 0;
            controlModel.QueryData           = 0;
            textBox1.Text += "停止调度 :" + DateTime.Now.ToString() + "\r\n";
        }
Ejemplo n.º 2
0
 public void Start()//启动超短期功率预测线程
 {
     isStop = false;
     if (ControlModel.getControlModel().PredictRealTimeData == 0)
     {
         threadPredictShortTime = new System.Threading.Thread(MainThread);
     }
     else
     {
         threadPredictShortTime = new System.Threading.Thread(MainThreadOpt);
     }
     threadPredictShortTime.Start();
 }
Ejemplo n.º 3
0
 public void Start()// 开启短期功率预测线程
 {
     isStop = false;
     if (ControlModel.getControlModel().PredictWeatherData == 0)
     {
         threadPredictPeriodTime = new System.Threading.Thread(MainThread);
     }
     else
     {
         threadPredictPeriodTime = new System.Threading.Thread(MainThreadOpt);
     }
     threadPredictPeriodTime.Start();
 }
Ejemplo n.º 4
0
 public void Start()// 启动实时数据模拟线程
 {
     isStop = false;
     if (ControlModel.getControlModel().ScadaWeatherData == 0)
     {
         threadScadaWeatherData = new System.Threading.Thread(MainThread);
     }
     else
     {
         threadScadaWeatherData = new System.Threading.Thread(MainThreadOpt);
     }
     threadScadaWeatherData.Start();
 }
Ejemplo n.º 5
0
 private void 数据查询ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (query == null || query.IsDisposed)
     {
         if (ControlModel.getControlModel().QueryData == 0)
         {
             query = new Query();
             query.Show();
             query.MdiParent = this;
         }
         else
         {
             queryOpt = new QueryOpt();
             queryOpt.Show();
             queryOpt.MdiParent = this;
         }
     }
 }