コード例 #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";
        }
コード例 #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;
            }
        }
コード例 #3
0
ファイル: RrdDbTreeForm.cs プロジェクト: mujing/rrd4net
 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;
 }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: mujing/rrd4net
 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";
 }