private void ProductWindow_Load(object sender, EventArgs e) { productRef = new ProductReference.ProductClient(); categoryRef = new CategoryReference.CategoryClient(); prepareComboBoxes(); refreshButton.PerformClick(); }
public void Prepare() { prodRef = new ProductReference.ProductClient(); catRef = new CategoryReference.CategoryClient(); prods = new List <ProductReference.TProduct>(prodRef.ReadAll()); cats = new List <CategoryReference.TCategory>(catRef.ReadAll()); }
public CategoryWindow() { InitializeComponent(); categoryRef = new CategoryReference.CategoryClient(); }