Ejemplo n.º 1
0
 protected void SetModel(object sender, DependencyPropertyChangedEventArgs e)
 {
     Model = DataContext as AvailableConditionListingModel;
     if (Model == null) return;
 }
Ejemplo n.º 2
0
 protected AvailableConditionListingModel GetCondition(ConditionContainer container, bool selected)
 {
     AvailableConditionListingModel model = new AvailableConditionListingModel(container, selected);
     model.Edit += OnEdit;
     model.Delete += OnDelete;
     model.MoveUp += OnMoveUp;
     model.MoveDown += OnMoveDown;
     return model;
 }