public NotificationBoxArgs(string title, string text, NotificationBoxCommand[] commands) { this.title = title; this.text = text; this.commands = commands; }
private async static void ShowHelper(string title, string text, NotificationBoxCommand[] commands) { _msgbox = new MessageDialog(text); _msgbox.Title = title; if (commands != null) foreach (var cmd in commands) _msgbox.Commands.Add( new UICommand(cmd.Label(), (UICommandInvokedHandler) => { cmd.DoAct(); _shown = false; })); else _msgbox.Commands.Add( new UICommand(Labels.CloseMessage, (UICommandInvokedHandler) => { _shown = false; })); _shown = true; _cmd = await _msgbox.ShowAsync(); CheckList(); }