void appLoader_OperationFailed(object sender, Core.LoaderEventArgs <Exception> e) { appContext.AppForm.ShowError(e.EventData); // DialogResult = DialogResult.Abort; Close(); }
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; } }
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; } }
void appLoader_OperationFailed(object sender, Core.LoaderEventArgs <Exception> e) { DialogResult = DialogResult.Abort; Close(); }