private void UpdateWindow_UpdateFailed(object sender, UpdateFailureEventArgs e) { innerPanel.Hide(); lblUpdateStatus.Text = "Updating failed! Click to retry."; lblUpdateStatus.DrawUnderline = true; lblUpdateStatus.Enabled = true; UpdateInProgress = false; innerPanel.Show(null); // Darkening XNAMessageBox msgBox = new XNAMessageBox(WindowManager, "Update failed", string.Format("An error occured while updating. Returned error was: {0}" + Environment.NewLine + Environment.NewLine + "If you are connected to the Internet and your firewall isn't blocking" + Environment.NewLine + "{1}, and the issue is reproducible, contact us at " + Environment.NewLine + "{2} for support.", e.Reason, CUpdater.CURRENT_LAUNCHER_NAME, MainClientConstants.SUPPORT_URL_SHORT), XNAMessageBoxButtons.OK); msgBox.OKClickedAction = MsgBox_OKClicked; msgBox.Show(); }
private void BtnExStatistics_LeftClick(object sender, EventArgs e) { MainMenuDarkeningPanel parent = (MainMenuDarkeningPanel)Parent; parent.Show(parent.StatisticsWindow); }