示例#1
0
        public ApplicationViewModel()
        {
            addMaterialsView        = new AddMaterialsViewModel();
            editJewelryView         = new EditJewelryViewModel(addMaterialsView, () => EditJewelry_MaterialEdited(), () => EditJewelry_EditMaterial());
            CurrentJewelryMaterials = new List <Material>();
            JewelryList             = new List <Jewelry>();
            JewelryListUI           = new ObservableCollection <Jewelry>();
            jewelryFactory          = new JewelryFactory();
            materialsFactory        = new MaterialsFactory();
            Plugins = PluginsLoader <IJewelryEncodingPlugin> .Load();

            serializersFactory = new JewelrySerializersFactory();
        }
示例#2
0
 public EditJewelryViewModel(AddMaterialsViewModel addMaterialsVm, Action MaterialEditedCallback, Action EditMaterialCallback)
 {
     this.addMaterialsVm         = addMaterialsVm;
     this.MaterialEditedCallback = MaterialEditedCallback;
     this.EditMaterialCallback   = EditMaterialCallback;
 }