public ProjectDialog(DivisionViewModel collection) { this.InitializeComponent(); ProjectNumberCollection = new ProjectNumberViewModel(); PlantOrderCollection = new PlantOrderViewModel(); DivisionCollection = collection; ProductionCollection = new ProductionViewCollection(); }
private async void DivisionComboBox_DropDownClosed(object sender, object e) { var selectedItem = DivisionComboBox.SelectedItem; if (selectedItem is DivisionModel division) { var session = new ProductionViewCollection(); if (await session.Load()) { await session.Update(PlantOrder, division); } await GetElements(PlantOrder, division); } }