static async Task UncaughtExceptionHandler(Exception e) { #if DEBUG Debugger.Break(); #endif await MessageDialogBuilder.CreateAcknowledgement(Window, MiscResources.ExceptionEncountered, e.ToString()).ShowAsync(); await ExitWithPushedNotification(); }
private static void TestDialogFlow2(BasePlayer sender) { sender.SendClientMessage("Test dialog flow started"); var dialog = new DialogFlow(false) .AddDialog(ListDialogBuilder.Create() .WithCaption("Dialog 1") .WithMessage("Pierwszy dialog") .WithLeftButton("Dalej") .WithRightButton("Wyjdź") .Continue() .WithRow("Pierwsza opcja") .WithRow("Druga opcja") .WithRow("Trzecia opocja") .Build()) .AddDialog(InputDialogBuilder.Create() .WithCaption("Dialog 2") .WithMessage("Dialog drugi") .WithLeftButton("Dalej") .WithRightButton("Cofnij") .Continue().PasswordStyle() .Build()) .AddDialog(MessageDialogBuilder.Create() .WithCaption("Dialog 3") .WithMessage("Trzeci dialog") .WithLeftButton("Gotowe") .WithRightButton("Cofnij") .Build()) .End((o, args) => { foreach (var arg in args) { sender.SendClientMessage( $"Output {arg.Key}: input: {arg.Value.InputText} | listitem: {arg.Value.ListItem}"); } }); dialog.Show(sender); }