Пример #1
0
 void appLoader_OperationFailed(object sender, Core.LoaderEventArgs <Exception> e)
 {
     appContext.AppForm.ShowError(e.EventData);
     //
     DialogResult = DialogResult.Abort;
     Close();
 }
Пример #2
0
 void appLoader_ProgressChanged(object sender, Core.LoaderEventArgs <Int32> e)
 {
     progressBar.Value = e.EventData;
     // Adjust Cancel button availability for an operation being performed
     if (btnCancel.Enabled != e.Cancellable)
     {
         btnCancel.Enabled = e.Cancellable;
     }
     // This check allows to avoid extra form redrawing operations
     if (ControlBox != e.Cancellable)
     {
         ControlBox = e.Cancellable;
     }
 }
Пример #3
0
 void appLoader_StatusChanged(object sender, Core.LoaderEventArgs <String> e)
 {
     lblProcess.Text = e.StatusMessage;
     lblValue.Text   = e.EventData;
     // Adjust Cancel button availability for an operation being performed
     if (btnCancel.Enabled != e.Cancellable)
     {
         btnCancel.Enabled = e.Cancellable;
     }
     // This check allows to avoid extra form redrawing operations
     if (ControlBox != e.Cancellable)
     {
         ControlBox = e.Cancellable;
     }
 }
Пример #4
0
 void appLoader_OperationFailed(object sender, Core.LoaderEventArgs <Exception> e)
 {
     DialogResult = DialogResult.Abort;
     Close();
 }