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(); }
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(); } }
public UpdateUIController( DevExpressXtraFormBase formBase) { _formBase = formBase; }