public AddCategorie(Manager.ShopManager _shopManager) { InitializeComponent(); shopManager = _shopManager; DataContext = this; AddCategorieGrid.ItemsSource = dB.Categorie.ToList(); //if (shopManager.Categorie != null) //{ //try //{ //CategorieCombo.ItemsSource = shopManager.Categorie; //} //catch (Exception) //{ //} //CategorieCombo.DisplayMemberPath = "CategorieName"; // CategorieCombo.SelectedValuePath = "CategoryID"; //} //shopManager.CategorieDatagrid = this.AddCategorieGrid; //shopManager.BindCategorie(); }
public AddSales(Manager.ShopManager _shopManager) { InitializeComponent(); //List<Products> product = new List<Products>(); //product.Add(new Products() { Amount = 590, ProductName = "Milo" }); //product.Add(new Products() { Amount = 1590, ProductName = "Dittol" }); //productNameCombo.ItemsSource = product; //productNameCombo.DisplayMemberPath = "ProductName"; shopManager = _shopManager; DataContext = this; //Binding product name to Select Sale name ComboBox if (shopManager.Product != null) { productNameCombo.ItemsSource = shopManager.Product; productNameCombo.DisplayMemberPath = "ProductName"; productNameCombo.SelectedValuePath = "ProductID"; } //Binding Customer name to Select Sale name ComboBox if (shopManager.Customers != null) { customerNameCombo.ItemsSource = shopManager.Customers; customerNameCombo.DisplayMemberPath = "FullName"; customerNameCombo.SelectedValuePath = "CustomerID"; } shopManager.SaleDatagrid = this.AddSalesGrid; shopManager.BindSales(); //shopManager.BindProducts(); }
public ListCategories(Manager.ShopManager _shopeManager) { InitializeComponent(); shopManager = _shopeManager; DataContext = this; shopManager.CategorieDatagrid = this.AddCategorieGrid; shopManager.BindCategorie(); }
public AddCustomer(Manager.ShopManager _shopManager) { InitializeComponent(); shopManager = _shopManager; DataContext = this; shopManager.CustomersDatagrid = this.AddCustomerGrid; shopManager.BindCustomer(); }
public ListProducts(Manager.ShopManager _shopManager) { InitializeComponent(); shopManager = _shopManager; DataContext = this; shopManager.ProductDatagrid = this.AddProductGrid; shopManager.BindProducts(); }
public ListSales(Manager.ShopManager _shopManager) { InitializeComponent(); shopManager = _shopManager; DataContext = this; shopManager.SaleDatagrid = this.AddSalesGrid; shopManager.BindSales(); InitializeComponent(); shopManager = _shopManager; DataContext = this; shopManager.SaleDatagrid = this.AddSalesGrid2; shopManager.BindSales(); }
public ListCustomer(Manager.ShopManager _shopManager) { try { InitializeComponent(); shopManager = new ShopManager(); shopManager = _shopManager; DataContext = this; shopManager.CustomersDatagrid = this.AddCustomerGridx; shopManager.BindCustomer(); } catch (NullReferenceException) { MessageBox.Show("Enter data in the Add Customer Field"); } }
public AddProduct(Manager.ShopManager _shopManager) { InitializeComponent(); shopManager = _shopManager; DataContext = this; if (shopManager.Categorie != null) { CategorieCombo.ItemsSource = shopManager.Categorie; CategorieCombo.DisplayMemberPath = "CategoryDescription"; CategorieCombo.SelectedValuePath = "CategoryID"; } //Binding category name to select product name Combox //shopManager.ProductCategoryCombo = this.CategorieCombo; //shopManager.BindProductCategoryComboBox(); //Binding input to product datagrid shopManager.ProductDatagrid = this.AddProductGrid; shopManager.BindProducts(); }
public POS(Manager.ShopManager _shopManager) { InitializeComponent(); shopManager = _shopManager; }