Beispiel #1
0
 private void stopButton_Click(object sender, EventArgs e)
 {
     lock (sender)
     {
         if (stop)
         {
             start = true;
             stop  = false;
             ExtractionManager.GetExtractionManager().MessagesShowEventHandler -= ExInfo;
             ExtractionManager.GetExtractionManager().StopExtract();
             tsstate.Text = @"状态:停止提取数据库";
         }
     }
 }
Beispiel #2
0
 private void startButton_Click(object sender, EventArgs e)
 {
     lock (sender)
     {
         if (start)
         {
             if (ProjectInfoDic.GetInstance().GetProjectInfos().Count > 0)
             {
                 stop  = true;
                 start = false;
                 ExtractionManager.GetExtractionManager().StartExtractDb();
                 ExtractionManager.GetExtractionManager().MessagesShowEventHandler += ExInfo;
                 tsstate.Text = @"状态:正在提取数据库";
             }
             else
             {
                 MessageBox.Show(@"请配置项目信息");
             }
         }
     }
 }