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