Esempio n. 1
0
        private void mainForm_Load(
            object sender,
            EventArgs e)
        {
            DataProcessing.CanOverwrite += dataProcessing_CanOverwrite;

            WinFormsPersistanceHelper.RestoreState(
                this,
                new RestoreInformation
            {
                SuggestZoomPercent = 90,
                RespectWindowRatio = false
            });
            CenterToScreen();

            ribbon.SelectedPage = ribbonPage1;
            FormBase.RestoreState(ribbon);
            DevExpressXtraFormBase.RestoreState(mainFormMainSplitContainer);

            loadMruFileProjects();
            loadMruFileFiles();

            checkShowApplicationMenuButton();

            if (!handleProjectOnCommandLine())
            {
                ProjectFilesControl.LoadRecentProject();
            }

            Application.Idle += application_Idle;

            UpdateUI();
        }
Esempio n. 2
0
        private void mainForm_FormClosing(
            object sender,
            FormClosingEventArgs e)
        {
            if (!checkAskSaveEverything())
            {
                e.Cancel = true;
            }
            else
            {
                ProjectFilesControl.CloseProject();

                FormBase.SaveState(ribbon);
                DevExpressXtraFormBase.SaveState(mainFormMainSplitContainer);

                WinFormsPersistanceHelper.SaveState(this);
                ((PersistentXmlFilePairStorage)PersistanceHelper.Storage).Flush();
            }
        }
Esempio n. 3
0
 public UpdateUIController(
     DevExpressXtraFormBase formBase)
 {
     _formBase = formBase;
 }