public static void ShowTipsOnceDirectly(this UserControl pageOrUserControl, string isoKey, string messageTitle, string message) { IsolatedAppSetingsHelper.ShowTipsByVerion(isoKey, delegate { pageOrUserControl.Alert("{0}\r\n\r\n {1}".FormatWith(new object[] { messageTitle, message }), null); }); }
public static void ShowTipsOnce(this UserControl pageOrUserControl, string isoKey, string messageTitleKey, string localizedStringKey = null) { IsolatedAppSetingsHelper.ShowTipsByVerion(isoKey, delegate { localizedStringKey = localizedStringKey ?? ("HowTo" + messageTitleKey); string title = LocalizedStrings.GetLanguageInfoByKey("HowTo").FormatWith(new object[] { LocalizedStrings.GetLanguageInfoByKey(messageTitleKey) }); pageOrUserControl.Alert(LocalizedStrings.GetLanguageInfoByKey(localizedStringKey), title); }); }
public static void AlertAndForceCancelAction(this IInteractionProvider source, string message) { if (source != null) source.Alert("Внимание", message); throw new ActionCancelledException(); }
public static void Alert(this IUserDialogService dialogs, string message, string title = null, string okText = "OK", Action onOk = null) { dialogs.Alert(new AlertConfig { Message = message, Title = title, OkText = okText, OnOk = onOk }); }
public static Task AlertAsync(this IUserDialogService dialogs, AlertConfig config) { var tcs = new TaskCompletionSource<object>(); config.OnOk = () => tcs.SetResult(null); dialogs.Alert(config); return tcs.Task; }
public static Task AlertAsync(this IUserDialogService dialogs, string message, string title = null, string okText = "OK") { var tcs = new TaskCompletionSource<object>(); dialogs.Alert(message, title, okText, () => tcs.SetResult(null)); return tcs.Task; }
public static MvcHtmlString Alert(this HtmlHelper helper, AlertType type, string text, string header) { return helper.Alert(type, text, header, false); }