Exemple #1
0
 public static IDisposable Activate(this IAlertDialogService @this, ReactiveCommand command, string text)
 {
     return(command.IsExecuting.Subscribe(x =>
     {
         if (x)
         {
             @this.Show(text);
         }
         else
         {
             @this.Hide();
         }
     }));
 }
Exemple #2
0
 public static IDisposable AlertExecuting(this ReactiveCommand @this, IAlertDialogService dialogFactory, string text)
 {
     return(@this.IsExecuting.Subscribe(x =>
     {
         if (x)
         {
             dialogFactory.Show(text);
         }
         else
         {
             dialogFactory.Hide();
         }
     }));
 }
Exemple #3
0
 public static IDisposable Activate(this IAlertDialogService @this, IObservable <bool> observable, string text)
 {
     return(observable.Subscribe(x =>
     {
         if (x)
         {
             @this.Show(text);
         }
         else
         {
             @this.Hide();
         }
     }));
 }