Exemple #1
0
 private void bw_ReloadTableXML_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Cancelled == true)
     {
         MessageBox.Show("您取消了刷新, 数据未更新!");
     }
     else if (e.Error != null)
     {
         ConfigUtils.Error(e.Error.Message, e.Error.StackTrace);
         MessageBox.Show("Error: " + e.Error.Message);
     }
     else
     {
         logDialog.SetButtonState(ButtonState.OK);
         SvnDiffExcel();
     }
 }
Exemple #2
0
 //重新加载EXCEL目录
 private void tsmi_ReloadTableXML_Click(object sender, EventArgs e)
 {
     logDialog      = new LogMessageDialog("搜索文件中...");
     logDialog.Text = "更新数据";
     logDialog.SetButtonState(ButtonState.CANCEL);
     logDialog.SetBackgroundWorker(bw_ReloadTableXML);
     bw_ReloadTableXML.RunWorkerAsync();
     logDialog.ShowDialog();
 }
Exemple #3
0
 //保存单个xlsx 或 sheet To CSV
 private void tnmi_OneSaveCsv_Click(object sender, EventArgs e)
 {
     if (bw_SaveCsv.IsBusy)
     {
         MessageBox.Show("系统繁忙, 请稍后再试");
         return;
     }
     csv_save_mode  = SAVE_ONE_CSV;
     logDialog      = new LogMessageDialog("搜索文件中...");
     logDialog.Text = "保存文件中...";
     logDialog.SetButtonState(ButtonState.CANCEL);
     logDialog.SetBackgroundWorker(bw_SaveCsv);
     bw_SaveCsv.RunWorkerAsync();
     logDialog.ShowDialog();
 }
Exemple #4
0
 private void tsmi_Csv2Code_Click(object sender, EventArgs e)
 {
     if (bw_Csv2Code.IsBusy)
     {
         MessageBox.Show("正在取消导表操作,请稍等...");
     }
     else
     {
         logDialog      = new LogMessageDialog("测试导表...");
         logDialog.Text = "测试导表";
         logDialog.SetBackgroundWorker(bw_Csv2Code);
         logDialog.SetButtonState(ButtonState.CANCEL);
         bw_Csv2Code.RunWorkerAsync();
         logDialog.ShowDialog();
     }
 }
Exemple #5
0
        //批量保存CSV
        private void tsmi_AllSaveCsv_Click(object sender, EventArgs e)
        {
            if (bw_SaveCsv.IsBusy)
            {
                MessageBox.Show("系统繁忙, 请稍后再试");
                return;
            }
            //Diff Excel 只保存修改过的Excel
            SvnDiffExcel();
            //保存CSV
            csv_save_mode = SAVE_ALL_CSV;

            logDialog      = new LogMessageDialog("搜索文件中...");
            logDialog.Text = "保存文件中...";
            logDialog.SetButtonState(ButtonState.CANCEL);
            logDialog.SetBackgroundWorker(bw_SaveCsv);
            bw_SaveCsv.RunWorkerAsync();
            logDialog.ShowDialog();
        }