private void barSetup_ItemClick(object sender, ItemClickEventArgs e) { using (frmSetup frm = new frmSetup(_currentPage)) { frm.ShowDialog(); PlayerListing pl = new PlayerListing(_message); } PlayerRefresh(); }
private void frmMain_Shown(object sender, EventArgs e) { if (UserSettings.NewVersionNotify) { UserSettings.NewVersionNotify = false; _message.Add("New update available: v" + UserSettings.NewAppVersion + ". Visit http://www.vbaddict.net/wotstatistics"); if (DevExpress.XtraEditors.XtraMessageBox.Show(Translations.TranslationGet("STR_VERSIONNOTIFY", "DE", "New update available: v" + UserSettings.NewAppVersion + " "+ Environment.NewLine + "Would you like to open the web page www.vbaddict.net/wotstatistics").Replace("{version}", UserSettings.NewAppVersion), "WOT Statistics", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == System.Windows.Forms.DialogResult.Yes) { OpenWebPage("WOTStatsWebLink"); } } using (PlayerListing players = new PlayerListing(_message)) { if (players.Count == 0) { using (frmSetup setup = new frmSetup("Players")) { setup.ShowDialog(); } PlayerRefresh(); } } barBattleMode.BeginUpdate(); barBattleMode.EditValue = UserSettings.BattleMode; barBattleMode.EndUpdate(); //barRatingSystem.BeginUpdate(); //barRatingSystem.EditValue = UserSettings.RatingSystem; //barRatingSystem.EndUpdate(); }