Ejemplo n.º 1
0
        public static void NewProject(Form owner)
        {
            TestLoader     loader = Services.TestLoader;
            SaveFileDialog dlg    = new SaveFileDialog();

            dlg.Title           = "New Test Project";
            dlg.Filter          = "NUnit Test Project (*.nunit)|*.nunit|All Files (*.*)|*.*";
            dlg.FileName        = Services.ProjectService.GenerateProjectName();
            dlg.DefaultExt      = "nunit";
            dlg.ValidateNames   = true;
            dlg.OverwritePrompt = true;

            if (dlg.ShowDialog(owner) == DialogResult.OK)
            {
                loader.NewProject(dlg.FileName);
            }
        }