public CategoryDialog(Database.DataModelsDataContext DB) { InitializeComponent(); this.category = new Database.Category(); this.newModel = true; this.DB = DB; }
public CategoryDialog(Database.Category category, Database.DataModelsDataContext DB) { InitializeComponent(); this.category = category; this.newModel = false; this.DB = DB; }
public ProductDialog(Database.Product product, Database.DataModelsDataContext DB) { InitializeComponent(); this.product = product; this.newModel = false; this.DB = DB; }
public ProductDialog(Database.DataModelsDataContext DB) { InitializeComponent(); this.product = new Database.Product(); this.newModel = true; deleteButton.Hide(); this.DB = DB; }