private void bProductModify_Click(object sender, EventArgs e) { FormProductActions formProduct = new FormProductActions(); if (formProduct.ShowDialog(this.lbProducts.SelectedItem as ProductDB, DbActionsEnum.Update) == DialogResult.OK) { DbValidation.Instance.saveProduct(formProduct.ResultProduct); this.refreshSearchProductsByName(); } }
private void bProductAdd_Click(object sender, EventArgs e) { FormProductActions formProduct = new FormProductActions(); if (formProduct.ShowDialog(null, DbActionsEnum.Create) == DialogResult.OK) { DbValidation.Instance.saveProduct(formProduct.ResultProduct); this.refreshSearchProductsByName(); } }
private void bProductModify_Click(object sender, EventArgs e) { FormProductActions formProduct = new FormProductActions(); if (formProduct.ShowDialog(this.lbProducts.SelectedItem as ProductDB, DbActionsEnum.Update) == DialogResult.OK) { DbValidation.Instance.saveProduct(formProduct.ResultProduct); this.refreshSearchProductsByName(); } }
private void bProductAdd_Click(object sender, EventArgs e) { FormProductActions formProduct = new FormProductActions(); if (formProduct.ShowDialog(null, DbActionsEnum.Create) == DialogResult.OK) { DbValidation.Instance.saveProduct(formProduct.ResultProduct); this.refreshSearchProductsByName(); } }
private void bProductView_Click(object sender, EventArgs e) { FormProductActions formProduct = new FormProductActions(); formProduct.ShowDialog(this.lbProducts.SelectedItem as ProductDB, DbActionsEnum.Show); }
private void bProductView_Click(object sender, EventArgs e) { FormProductActions formProduct = new FormProductActions(); formProduct.ShowDialog(this.lbProducts.SelectedItem as ProductDB, DbActionsEnum.Show); }