예제 #1
0
 private void FileNewMenuItem_Click(object? sender, EventArgs e) {
   SelectEditorView.Text = "Select Table for New Editor";
   if (SelectEditorView.ShowDialog(this) == DialogResult.Cancel) {
     return;
   }
   Cursor = Cursors.WaitCursor;
   BeginInvoke((Action)NewEditorAsync);
 }
예제 #2
0
 private void FileOpenMenuItem_Click(object? sender, EventArgs e) {
   if (!MdiChildren.Any()) {
     FileNewMenuItem_Click(sender, e);
     return;
   }
   SelectEditorView.Text = "Select Table for Current Editor";
   if (SelectEditorView.ShowDialog(this) == DialogResult.Cancel) {
     return;
   }
   Cursor = Cursors.WaitCursor;
   BeginInvoke((Action)OpenEditorAsync);
 }