Пример #1
0
 public static BasicUserInteraction Information(string title, string message, Action <IUserInteraction> confirmationCallback)
 {
     return(new BasicUserInteraction(
                title,
                message,
                new IInteractionOption <IUserInteraction>[]
     {
         BasicInteractionOption.Ok(confirmationCallback),
     }));
 }
Пример #2
0
 public static BasicUserInteraction Confirmation(string title, string message, Action <IUserInteraction> yesCallback, Action <IUserInteraction> noCallback)
 {
     return(new BasicUserInteraction(
                title,
                message,
                new IInteractionOption <IUserInteraction>[]
     {
         BasicInteractionOption.Yes(yesCallback),
         BasicInteractionOption.No(noCallback)
     }));
 }