예제 #1
0
        public ConditionEditorModel(ConditionService service)
        {
            AndAtoms = new ObservableCollection<ConditionComponentListingModel>();
            OrAtoms = new ObservableCollection<ConditionComponentListingModel>();
            EditorModel = new ComponentEditorModel();
            ConditionSelectorModel = new ExistingConditionSelectorModel(service);

            ConditionSelectorModel.OnSelect += ConditionSelected;
        }
예제 #2
0
 protected void SetModel(object sender, DependencyPropertyChangedEventArgs e)
 {
     Model = DataContext as ComponentEditorModel;
     if (Model == null) return;
 }