Esempio n. 1
0
        public ProjectDialog(DivisionViewModel collection)
        {
            this.InitializeComponent();

            ProjectNumberCollection = new ProjectNumberViewModel();
            PlantOrderCollection    = new PlantOrderViewModel();
            DivisionCollection      = collection;
            ProductionCollection    = new ProductionViewCollection();
        }
Esempio n. 2
0
        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);
            }
        }