Exemplo n.º 1
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";
        }
Exemplo n.º 2
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;
            }
        }
Exemplo n.º 3
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;
 }
Exemplo n.º 4
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";
 }