private void NewProject()
        {
            if (projectExplorer.ProjectElements.Nodes.Count != 0)
            {
                DialogResult res = MessageBox.Show("Would you like to save the current project?", "Warning", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);

                if (res == DialogResult.Yes)
                {
                    SaveProject();
                }
                else if (res == DialogResult.Cancel)
                {
                    return;
                }
            }

            ProjectNameForm form = new ProjectNameForm();

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog();


            projectExplorer.ProjectElements.Nodes.Clear();

            //NuGenProject.Instance = new NuGenProject();
            NuGenProject.Instance.Name = form.ProjectName;
            NuGenProject.Instance.Assemblies.Clear();
        }
        private void NewProject()
        {
            if (projectExplorer.ProjectElements.Nodes.Count != 0)
            {
                DialogResult res = MessageBox.Show("Would you like to save the current project?", "Warning", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Warning);

                if (res == DialogResult.Yes)
                {
                    SaveProject();
                }
                else if (res == DialogResult.Cancel)
                {
                    return;
                }
            }

            ProjectNameForm form = new ProjectNameForm();
            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog();


            projectExplorer.ProjectElements.Nodes.Clear();

            //NuGenProject.Instance = new NuGenProject();
            NuGenProject.Instance.Name = form.ProjectName;
            NuGenProject.Instance.Assemblies.Clear();
        }