private void m_updateManager_rollbackFinished(object sender, applyUpdateActionFinishedEventArgs e) { btnCancel.Enabled = true; aclApply.Text = Language.GetString("mainForm_lblCurrentStatus_updateFailed"); lblStatus.Text = Language.GetString("mainForm_lblStatus_updateFailed"); aclApply.State = statusLabelStates.Failure; btnCancel.Text = Language.GetString("general_button_close"); //(new exceptionDialog(e.actionException)).ShowDialog(this); if (!(e.actionException is userCancelledException)) { MessageBox.Show(this, string.Format(Language.GetString("mainForm_rollback"), "\r\n", e.actionException.Message), "updateInstaller", MessageBoxButtons.OK, MessageBoxIcon.Error); } prgUpdate.ShowInTaskbar = false; prgUpdate.Value = prgUpdate.Maximum; _updateFailed = true; ; if (m_updateManager.currentConfig.Settings.SkipOK) { Close(); } }
private void m_updateManager_updateFinished(object sender, applyUpdateActionFinishedEventArgs e) { btnCancel.Enabled = true; if (!m_updateManager.currentConfig.Settings.SkipOK) { aclApply.Text = Language.GetString("mainForm_lblCurrentStatus_updateSuccessfull"); aclApply.State = statusLabelStates.Success; lblStatus.Text = Language.GetString("mainForm_lblStatus_updateSuccessfull"); btnCancel.Text = Language.GetString("general_button_close"); prgUpdate.ShowInTaskbar = false; prgUpdate.Value = prgUpdate.Maximum; } else { Close(); } }