public ConditionEditorModel(ConditionService service) { AndAtoms = new ObservableCollection<ConditionComponentListingModel>(); OrAtoms = new ObservableCollection<ConditionComponentListingModel>(); EditorModel = new ComponentEditorModel(); ConditionSelectorModel = new ExistingConditionSelectorModel(service); ConditionSelectorModel.OnSelect += ConditionSelected; }
protected void SetModel(object sender, DependencyPropertyChangedEventArgs e) { Model = DataContext as ComponentEditorModel; if (Model == null) return; }