Пример #1
0
        private void barButtonItemAdd_ItemClick(object sender, ItemClickEventArgs e)
        {
            var importProductFormExcel = new FormInsertOrUpdateProduct(null);

            importProductFormExcel.ShowDialog();
            LoadProducts(null);
        }
Пример #2
0
 private void gridLookUpEditProduct_ButtonPressed(object sender, ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         var product = new FormInsertOrUpdateProduct(null);
         product.ShowDialog();
         LoadProductForGridLookUp();
     }  
 }
Пример #3
0
 private void gridLookUpEditProduct_ButtonPressed(object sender, ButtonPressedEventArgs e)
 {
     if (e.Button.Index == 1)
     {
         var product = new FormInsertOrUpdateProduct(null);
         product.ShowDialog();
         LoadProductForGridLookUp();
     }
 }
Пример #4
0
 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);
     }
 }
Пример #5
0
 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);
     }
 }
Пример #6
0
 private void barButtonItemAdd_ItemClick(object sender, ItemClickEventArgs e)
 {
     var importProductFormExcel = new FormInsertOrUpdateProduct(null);
     importProductFormExcel.ShowDialog();
     LoadProducts(null);
 }