コード例 #1
0
ファイル: MainForm.cs プロジェクト: mzkabbani/XMLParser
 private void cleanupToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         CleanupForm cleanupForm = new CleanupForm();
         cleanupForm.MdiParent = this;
         cleanupForm.Show();
     } catch (Exception ex) {
         MessageBox.Show(ex.Message);
     }
 }
コード例 #2
0
 private void BtnCloseMacroSplitterClick(object sender, EventArgs e)
 {
     try {
         if (CommonUtils.ShowConfirmation("Are you sure you want to close?") == DialogResult.Yes) {
             if (splitPerformed) {
                 bool disposing = this.ParentForm.Disposing  ;
                 if (CommonUtils.ShowConfirmation("Do you want to proceed to level one cleanup?") == DialogResult.Yes) {
                     CleanupForm form = new CleanupForm(txtOutputDir.Text);
                     form.MdiParent = this.MdiParent;
                     form.Show();
                 }
             }
             this.Close();
         }
     } catch (Exception ex) {
         CommonUtils.ShowError(ex.Message, ex);
     }
 }
コード例 #3
0
 private void btnSplitFile_Click(object sender, EventArgs e)
 {
     try {
         StartSplittingFile();
         //FrontendUtils.ShowInformation("Splitting done!");
         btnSplitFile.Enabled = false;
         if (CommonUtils.ShowConfirmation("Splitting done.\nDo you want to proceed to level one cleanup?") == DialogResult.Yes) {
             CleanupForm form = new CleanupForm(txtOutputDir.Text);
             form.MdiParent = this.MdiParent;
             form.Show();
         }
     } catch (Exception ex) {
         CommonUtils.ShowError(ex.Message, ex);
     }
 }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: mzkabbani/XMLParser
 private void firstLevelCleanupToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         CleanupForm form = new CleanupForm();
         form.MdiParent = this;
         form.Show();
     } catch (Exception ex) {
         FrontendUtils.ShowError(ex.Message);
     }
 }
コード例 #5
0
ファイル: MainForm.cs プロジェクト: mzkabbani/XMLParser
 private void firstLevelCleanupToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try {
         FrontendUtils.SendUsageNotification("First Level Cleanup started by " + loggedInUser);
         CleanupForm form = new CleanupForm();
         form.MdiParent = this;
         form.Show();
     } catch (Exception ex) {
         FrontendUtils.ShowError(ex.Message, ex);
     }
 }
コード例 #6
0
 private void BulkMacroSplitterTreeForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     try {
         if (FrontendUtils.ShowConformation("Do you want to proceed to level one cleanup?") == DialogResult.Yes) {
             CleanupForm form = new CleanupForm(txtOutputDir.Text);
             form.MdiParent = this.MdiParent;
             form.Show();
         }
     } catch (Exception ex) {
         FrontendUtils.ShowError(ex.Message, ex);
     }
 }