コード例 #1
0
ファイル: MainPresenter.cs プロジェクト: hut104/ApsimX
 /// <summary>Application is closing - allow this to happen?</summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Close arguments</param>
 private void OnClosing(object sender, AllowCloseArgs e)
 {
     Utility.Configuration.Settings.MainFormLocation = view.WindowLocation;
     Utility.Configuration.Settings.MainFormSize = view.WindowSize;
     Utility.Configuration.Settings.MainFormWindowState = view.WindowMinimisedOrMaximised;
 }
コード例 #2
0
ファイル: MainPresenter.cs プロジェクト: byzheng/ApsimX
 /// <summary>Application is closing - allow this to happen?</summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Close arguments</param>
 private void OnClosing(object sender, AllowCloseArgs e)
 {
     e.AllowClose = AllowClose();
     if (e.AllowClose)
     {
         Utility.Configuration.Settings.MainFormLocation = view.WindowLocation;
         Utility.Configuration.Settings.MainFormSize = view.WindowSize;
         Utility.Configuration.Settings.MainFormMaximized = view.WindowMaximised;
     }
 }
コード例 #3
0
ファイル: MainPresenter.cs プロジェクト: pre078/ApsimX
 /// <summary>Application is closing - allow this to happen?</summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">Close arguments</param>
 private void OnClosing(object sender, AllowCloseArgs e)
 {
     Utility.Configuration.Settings.MainFormLocation    = view.WindowLocation;
     Utility.Configuration.Settings.MainFormSize        = view.WindowSize;
     Utility.Configuration.Settings.MainFormWindowState = view.WindowMinimisedOrMaximised;
 }