private void PlayCardsWindow_FormClosing(object sender, FormClosingEventArgs e) { if ((e.CloseReason == CloseReason.UserClosing) && !this.closing) { this.closing = true; StatTrackingClient.Instance().ActivateTrigger(0x15, null); InterfaceMgr.Instance.closePlayCardsWindow(); } }
private void Logout_FormClosing(object sender, FormClosingEventArgs e) { if ((e.CloseReason == CloseReason.UserClosing) && !closing) { closing = true; this.currentPanel.vacationModeCloseCheck(); this.currentPanel.closePopup(); StatTrackingClient.Instance().ActivateTrigger(0x1a, false); InterfaceMgr.Instance.closeLogoutWindow(); } }
private void facebookShareClicked() { if (this.fb_questID >= 0) { object[] objArray = new object[] { "http://login.strongholdkingdoms.com/facebook/js_share.php?u=", RemoteServices.Instance.UserGuid.ToString().Replace("-", ""), "&eventid=", (this.fb_questID + 100).ToString(), "&desc=", this.fb_questString, "&lang=", Program.mySettings.LanguageIdent, "&worldid=", Program.mySettings.LastWorldID, "&caption=", this.fb_questCaption }; string str = string.Concat(objArray); try { StatTrackingClient.Instance().ActivateTrigger(30, 0); new Process { StartInfo = { FileName = str } }.Start(); } catch (Exception) { } } }