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); }
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); }