Ejemplo n.º 1
0
 public MethodCommand(object instance, CommandMeta meta)
 {
     Instance = instance;
     Meta = meta;
     if (meta.Condition != null)
     {
         _computedCan = new Computed<bool>(() => (bool)meta.Condition.GetValue(Instance));
         _computedCan.Invalidated += () => UpdateScheduler.ScheduleUpdate(UpdateNow);
     }
 }