public ClickableCustomMessageBoxPanel(ClickableCustomMessageBox parentDialog) : base((CustomMessageBox) parentDialog) { }
private void OnComputerIsEnabledForWiMAXPopupTick(object sender, EventArgs e) { this._computerIsEnabledForWiMAXPopupTimer.Stop(); if (this._computerIsEnabledForWiMAXCMB.Visible || !CurrentUserSettings.GetShowComputerIsEnabledForWiMAXPopup()) return; string @string = DashboardStringHelper.GetString("CapitalClickHere_Clickable"); this._computerIsEnabledForWiMAXCMB = new ClickableCustomMessageBox(string.Format(TaskTrayStringHelper.GetString("TaskTray_Prompt_ComputerIsEnabledForWiMAX"), (object) @string), @string, new LinkLabelLinkClickedEventHandler(this.OnComputerIsEnabledForWiMAXClicked), CustomMessageBoxStyle.Ok, DontShowThisMessageAgainOptions.ComputerIsEnabledForWiMAXPopup); this._computerIsEnabledForWiMAXCMB.AccessibleName = "ComputerIsEnabledForWiMAXMB"; this._computerIsEnabledForWiMAXCMB.LocationOfMessageBox = CustomMessageBoxLocation.AlwaysInTaskTrayBottom; this._computerIsEnabledForWiMAXCMB.CustomShow((IWin32Window) null, true); }
private void OnShowDualModeWarningForWiMAX(object sender, object[] eventArgs) { if (this._dualModeWarningCMB.Visible || !LocalMachineSettings.IsDualModeWarningEnabled() || !CurrentUserSettings.GetShowDualModeWarningPopup()) return; string @string = DashboardStringHelper.GetString("LowerCaseClickHere_Clickable"); this._dualModeWarningCMB = new ClickableCustomMessageBox(string.Format(DashboardStringHelper.GetString("DualModeWarningForWiMAX"), (object) @string), @string, new LinkLabelLinkClickedEventHandler(this.OnDualModeWarningForWiMAXClicked), CustomMessageBoxStyle.Ok, DontShowThisMessageAgainOptions.DualModeWarningForWiMAX); this._dualModeWarningCMB.AccessibleName = "DualModeWarningMB"; this._dualModeWarningCMB.LocationOfMessageBox = CustomMessageBoxLocation.CenterOfDashboardOrInTaskTrayOnTop; int num = (int) this._dualModeWarningCMB.CustomShowDialog((IWin32Window) AppFramework.Dashboard, true); }
private void OnIPAddressStateChanged(object sender, object[] eventArgs) { this.TheConnectionPanel.UpdateUI(); this._subscriptionAndFirewallPopupShown = false; if (Intel.Mobile.WiMAXCU.BizTier.ApplicationState.Singleton.IPAddressState == IPAddressStateEnum.Invalid) { if (Intel.Mobile.WiMAXCU.BizTier.ApplicationState.Singleton.BlockedForDisconnect || Intel.Mobile.WiMAXCU.BizTier.ApplicationState.Singleton.BlockedForRadioSwitch) return; AppFramework.TaskTray.ShowTaskTrayNotification(DashboardStringHelper.GetString("BalloonMsg_WiMAXHasLimitedOrNoConnectivity"), TaskTrayPopupClickOptions.LaunchIPAddressHelp, true, false, true); } else { if (Intel.Mobile.WiMAXCU.BizTier.ApplicationState.Singleton.IPAddressState != IPAddressStateEnum.Valid || NetworkHandler.ConnectedNetworks.Count <= 0 || SPEventsHandler.Singleton.FastReconnect) return; int numSecondsConnected = 0; NetworkHandler.Singleton.GetConnectionTime(ref numSecondsConnected); if (this._connectedCMB.Visible || !CurrentUserSettings.GetShowSubscribeForServiceAndFirewallPopup() || numSecondsConnected >= 20) return; this._subscriptionAndFirewallPopupShown = true; string connectedBalloonText = WiMAXDisplayService.Singleton.GetConnectedBalloonText(NetworkHandler.ConnectedNetworks[0].WmxNetwork, true); string string1 = DashboardStringHelper.GetString("OpenWebBrowserClickHere_Clickable"); if (Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName.ToLower() == "ko") { this._connectedCMB = new ClickableCustomMessageBox(string.Format(DashboardStringHelper.GetString("SubscribeForServiceAndFirewallPopup"), (object) connectedBalloonText, (object) NetworkHandler.ConnectedNetworks[0].NetworkName, (object) string1), string1, (string) null, new LinkLabelLinkClickedEventHandler(this.OnSubscribeForServiceAndFirewallPopupClicked), CustomMessageBoxStyle.Ok, DontShowThisMessageAgainOptions.SubscribeForServiceAndFirewallPopup); } else { string string2 = DashboardStringHelper.GetString("CapitalClickHere_Clickable"); this._connectedCMB = new ClickableCustomMessageBox(string.Format(DashboardStringHelper.GetString("SubscribeForServiceAndFirewallPopup"), (object) connectedBalloonText, (object) NetworkHandler.ConnectedNetworks[0].NetworkName, (object) string1, (object) string2), string1, string2, new LinkLabelLinkClickedEventHandler(this.OnSubscribeForServiceAndFirewallPopupClicked), CustomMessageBoxStyle.Ok, DontShowThisMessageAgainOptions.SubscribeForServiceAndFirewallPopup); } this._connectedCMB.AccessibleName = "SubscribeForServiceAndFirewallWarningMB"; this._connectedCMB.LocationOfMessageBox = CustomMessageBoxLocation.CenterOfDashboardOrInTaskTrayOnTop; int num = (int) this._connectedCMB.CustomShowDialog((IWin32Window) AppFramework.Dashboard, true); } }
private static bool IsOkToTurnWiMAXRadioOnCoExCheck() { if (DashboardAndTaskTray._turningWiMAXOnWillBreakYourWiFiConnectionCMB.Visible) return false; if (CurrentUserSettings.GetShowCoExPopups() && WiFiHandler.Singleton.IsWiFiAvailable() && WiFiHandler.Singleton.IsWiFiReady()) { WiFiCoEx_ConnectionState eConnectionState = WiFiCoEx_ConnectionState.WIFI_NOT_CONNECTED; if (WiFiHandler.Singleton.GetConnectionState(ref eConnectionState) == 0 && eConnectionState != WiFiCoEx_ConnectionState.WIFI_NOT_CONNECTED) { string @string = DashboardStringHelper.GetString("CapitalClickHere_Clickable"); LinkLabelLinkClickedEventHandler clickedEventHandler = new LinkLabelLinkClickedEventHandler(DashboardAndTaskTray.OnWiFiConnectionWillBeBrokenPopupClicked); string message; LinkLabelLinkClickedEventHandler LinkHandler; if (WiFiCoEx_ConnectionState.WIFI_STA_CP_CONNECTED == eConnectionState || WiFiCoEx_ConnectionState.WIFI_STA_HN_CONNECTED == eConnectionState) { message = string.Format(DashboardStringHelper.GetString("Prompt_WiFiAndDeviceConnectionWillBeBroken_Ver2"), (object) @string); LinkHandler = new LinkLabelLinkClickedEventHandler(DashboardAndTaskTray.OnWiFiAndDeviceConnectionWillBeBrokenPopupClicked); } else if (WiFiCoEx_ConnectionState.WIFI_CP_CONNECTED == eConnectionState || WiFiCoEx_ConnectionState.WIFI_HN_CONNECTED == eConnectionState) { message = string.Format(DashboardStringHelper.GetString("Prompt_WiFiDeviceConnectionWillBeBroken_Ver2"), (object) @string); LinkHandler = new LinkLabelLinkClickedEventHandler(DashboardAndTaskTray.OnDeviceConnectionWillBeBrokenPopupClicked); } else { message = string.Format(DashboardStringHelper.GetString("Prompt_WiFiConnectionWillBeBroken_Ver2"), (object) @string); LinkHandler = new LinkLabelLinkClickedEventHandler(DashboardAndTaskTray.OnWiFiConnectionWillBeBrokenPopupClicked); } DashboardAndTaskTray._turningWiMAXOnWillBreakYourWiFiConnectionCMB = new ClickableCustomMessageBox(message, @string, LinkHandler, CustomMessageBoxStyle.YesNo, DontShowThisMessageAgainOptions.TurningRadioOnWillBreakYourConnectionPopup); DashboardAndTaskTray._turningWiMAXOnWillBreakYourWiFiConnectionCMB.AccessibleName = "TurningWiMAXOnWillBreakYourWiFiConnectionMB"; DashboardAndTaskTray._turningWiMAXOnWillBreakYourWiFiConnectionCMB.LocationOfMessageBox = CustomMessageBoxLocation.CenterOfDashboardOrInTaskTrayOnTop; if (DashboardAndTaskTray._turningWiMAXOnWillBreakYourWiFiConnectionCMB.CustomShowDialog((IWin32Window) AppFramework.Dashboard, true) != DialogResult.Yes) return false; } } return true; }
private DialogResult ShowPromptDialog(string promptText, string clickableText, LinkLabelLinkClickedEventHandler linkClickedEventHandler, CustomMessageBoxStyle promptStyle) { if (this._fumoPromptCMB != null && this._fumoPromptCMB.Visible) return DialogResult.Ignore; this._fumoPromptCMB = new ClickableCustomMessageBox(promptText, clickableText, linkClickedEventHandler, promptStyle); this._fumoPromptCMB.AccessibleName = "FUMODownloadMB"; this._fumoPromptCMB.LocationOfMessageBox = CustomMessageBoxLocation.AlwaysInTaskTrayBottom; return this._fumoPromptCMB.CustomShowDialog((IWin32Window) AppFramework.Dashboard, true); }