private void newToolStripMenuItem_Click(object sender, EventArgs e) { NewRrdDbForm frm = new NewRrdDbForm(); frm.Controller = controller; if (frm.ShowDialog(this) == DialogResult.Cancel) { return; } saveToolStripMenuItem.Enabled = true; // Can't import data until saved importDataToolStripMenuItem.Enabled = false; importDataToolStripMenuItem.ToolTipText = "Can't import until database saved"; }
private void newToolStripButton_Click(object sender, EventArgs e) { if (!CheckIfUnsaved()) { return; } NewRrdDbForm frm = new NewRrdDbForm(); frm.Controller = controller; if (frm.ShowDialog(this) == DialogResult.Cancel) { return; } }
private void newToolStripButton_Click(object sender, EventArgs e) { if (!CheckIfUnsaved()) return; NewRrdDbForm frm = new NewRrdDbForm(); frm.Controller = controller; if (frm.ShowDialog(this) == DialogResult.Cancel) return; }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { NewRrdDbForm frm = new NewRrdDbForm(); frm.Controller = controller; if (frm.ShowDialog(this) == DialogResult.Cancel) return; saveToolStripMenuItem.Enabled = true; // Can't import data until saved importDataToolStripMenuItem.Enabled = false; importDataToolStripMenuItem.ToolTipText = "Can't import until database saved"; }