Beispiel #1
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();
         }
     }));
 }
Beispiel #2
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();
         }
     }));
 }
Beispiel #3
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();
         }
     }));
 }
Beispiel #4
0
 public static IDisposable Activate(this IAlertDialogService @this, string text)
 {
     @this.Show(text);
     return(Disposable.Create(@this.Hide));
 }