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(); }
public EditJewelryViewModel(AddMaterialsViewModel addMaterialsVm, Action MaterialEditedCallback, Action EditMaterialCallback) { this.addMaterialsVm = addMaterialsVm; this.MaterialEditedCallback = MaterialEditedCallback; this.EditMaterialCallback = EditMaterialCallback; }