Exemple #1
0
 public void ChangeDoubleProperty(string title, Func <double> get, Action <double> set, double min, double max, double unit)
 {
     CalculateDialogService
     .Show(min, max, unit, get(), title)
     .Subscribe(arg =>
     {
         if (arg.IsCanceled)
         {
             return;
         }
         set(arg.Data);
     });
 }
Exemple #2
0
 public void ChangeInt32Property(string title, Func <int> get, Action <int> set, int min, int max)
 {
     CalculateDialogService
     .Show(min, max, 1, get(), title)
     .Subscribe(arg =>
     {
         if (arg.IsCanceled)
         {
             return;
         }
         set((int)arg.Data);
     });
 }