示例#1
0
 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;
 }
示例#2
0
 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";
 }