Exemple #1
0
        public MainForm(string startupProject)
        {
            InitializeComponent();
            Positioning.Load(this,
                             RegistryHive.CurrentUser, REGISTRY_KEY);
            Options.GetInstance().Load(Application.ExecutablePath);
            if (Options.GetInstance().Reopen&& startupProject == null)
            {
                startupProject = Options.GetInstance().LastProject;
            }
            if (startupProject != null)
            {
                FileInfo fi = new FileInfo(startupProject);
                if (fi.Exists)
                {
                    project.Load(Application.ExecutablePath, startupProject);
                    LoadProject();
                }
            }

            LoadRecentItems();
        }