protected void SetModel(object sender, DependencyPropertyChangedEventArgs e)
 {
     Model = DataContext as AvailableConditionListingModel;
     if (Model == null) return;
 }
示例#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;
 }