private void barButtonItemAdd_ItemClick(object sender, ItemClickEventArgs e) { var importProductFormExcel = new FormInsertOrUpdateProduct(null); importProductFormExcel.ShowDialog(); LoadProducts(null); }
private void gridLookUpEditProduct_ButtonPressed(object sender, ButtonPressedEventArgs e) { if (e.Button.Index == 1) { var product = new FormInsertOrUpdateProduct(null); product.ShowDialog(); LoadProductForGridLookUp(); } }
private void barButtonItemUpdate_ItemClick(object sender, ItemClickEventArgs e) { if (string.IsNullOrEmpty(_productId)) { MessageBoxHelper.ShowMessageBoxEditWaringNotSelectId("Hàng hóa"); } else { var update = new FormInsertOrUpdateProduct(_productId); update.ShowDialog(); LoadProducts(null); _productId = null; EnableButtonUpdateAndDelete(false); } }