示例#1
0
        public MainFrame(string[] args)
        {
            _this = this;

            currentFileName = "Untitled";
            projectNeedSave = false;
            currentProject = new SetupProject();
            currentProject.InitializeDefaults();
            InitializeComponent();
            LoadRecentMenu();

            if (args.Length == 1)
                _openFileName = args[0];
        }
示例#2
0
        private void OnNewProject(object sender, EventArgs e)
        {
            if (projectNeedSave)
            {
                switch (MessageBox.Show("The current project has changed. Do you want to save it?",
                    "Save?", MessageBoxButtons.YesNoCancel))
                {
                    case DialogResult.OK:
                        OnSave(null, null);
                        // Fall troug
                        break;
                    case DialogResult.No:
                        break;
                    case DialogResult.Cancel:
                        return; // Do not create a new project
                }
            }

            currentFileName = "";
            currentProject = new SetupProject();
            currentProject.InitializeDefaults();
            BindData();
            SynchFeatures(true);
            ReloadMergeModuleList();
            ReloadWixModuleList();
            ReloadFileList();
        }