/// <summary> /// Edit product button click /// </summary> private async Task ActionEditClickAsync(int productId) { Spinner.InitSpinner(); Product product = await AppServices.ProductService.GetByIdAsync(productId); Spinner.StopSpinner(); ProductForm productForm = new ProductForm(this); productForm.ShowProductForm(product); }
/// <summary> /// Create product button click /// </summary> private void btnCreate_Click(object sender, EventArgs e) { ProductForm productForm = new ProductForm(this); productForm.ShowProductForm(); }