Exemple #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            List <SectionModel> sectionList = SectionModel.CreateList();

            cboSection.ItemsSource = sectionList;
            if (sectionList.Count > 0)
            {
                cboSection.SelectedItem = sectionList.FirstOrDefault();
            }
            dgProductionNumber.ItemsSource = productionNumbers;
        }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     if (account.ProductionMemo == true)
     {
         btnSave.IsEnabled   = true;
         btnDelete.IsEnabled = true;
     }
     sectionList            = SectionModel.CreateList();
     cboSection.ItemsSource = sectionList;
     if (sectionList.Count > 0)
     {
         cboSection.SelectedItem = sectionList.FirstOrDefault();
     }
     dgProductionNumber.ItemsSource = productionNumbers;
 }