Пример #1
0
        private void mnuFileNew_Click(object sender, EventArgs e)
        {
            frmNewProject f = new frmNewProject();

            if (f.ShowDialog() == DialogResult.OK)
            {
                if (string.IsNullOrEmpty(f.Template))
                {
                    New();
                }
                else
                {
                    NewFromTemplate(f.Template);
                }
            }
        }
Пример #2
0
 private void mnuFileNew_Click(object sender, EventArgs e)
 {
     frmNewProject f = new frmNewProject();
     if (f.ShowDialog() == DialogResult.OK)
     {
         if (string.IsNullOrEmpty(f.Template))
             New();
         else
             NewFromTemplate(f.Template);
     }
 }