예제 #1
0
 private void PopulateDataGrid(CustomerMasterData c = null, Article a = null)
 {
     if (c != null)
     {
         PopulateDataGrid(c);
     }
     if (a != null)
     {
         PopulateDataGrid(a);
     }
 }
예제 #2
0
        private void GetDataFromDB(int intVal)
        {
            Dispatcher.BeginInvoke(new Action(() =>
            {
                dataGridArticle.ItemsSource  = null;
                dataGridCustomer.ItemsSource = null;
            }));
            CustomerMasterData c = dbCentral.CustomerMasterDatas.Find(intVal);

            if (c != null)
            {
                PopulateDataGrid(c);
            }
            Article a = dbCentral.Articles.Find(intVal);

            if (a != null)
            {
                PopulateDataGrid(a);
            }
        }