コード例 #1
0
        private void UpdateTable()
        {
            using (var Db = new SkladModel())
            {
                DGR_Employee.ItemsSource  = null;
                DGR_Operation.ItemsSource = null;
                DGR_Users.ItemsSource     = null;
                DGR_Unit.ItemsSource      = null;
                DGR_Type.ItemsSource      = null;
                DGR_Product.ItemsSource   = null;

                DGR_Employee.ItemsSource  = Db.GetAllEmployee();
                DGR_Operation.ItemsSource = Db.GetAllOperation();
                DGR_Users.ItemsSource     = Db.GetAllUser();
                DGR_Unit.ItemsSource      = Db.GetAllUnit_Of_Measurement();
                DGR_Type.ItemsSource      = Db.GetAllProduct_Type();
                DGR_Product.ItemsSource   = Db.GetAllProduct();
            }
        }