コード例 #1
0
ファイル: Loader.cs プロジェクト: vkuttyp/websitepanel
 private void OnLoaderFormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.DialogResult == DialogResult.Cancel)
     {
         if (appLoader != null)
         {
             appLoader.AbortOperation();
             appLoader = null;
         }
     }
 }
コード例 #2
0
ファイル: Loader.cs プロジェクト: maxxxxxx123/websitepanel
 private void OnLoaderFormClosing(object sender, FormClosingEventArgs e)
 {
     if (this.DialogResult == DialogResult.Cancel)
     {
         appLoader.AbortOperation();
     }
     // Remove event handlers
     appLoader.OperationFailed    -= new EventHandler <Core.LoaderEventArgs <Exception> >(appLoader_OperationFailed);
     appLoader.ProgressChanged    -= new EventHandler <Core.LoaderEventArgs <Int32> >(appLoader_ProgressChanged);
     appLoader.StatusChanged      -= new EventHandler <Core.LoaderEventArgs <String> >(appLoader_StatusChanged);
     appLoader.OperationCompleted -= new EventHandler <EventArgs>(appLoader_OperationCompleted);
 }