Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(SupplierId))
     {
         XtraMessageBox.Show("Vui lòng chọn một Nhà Cung Cấp cần sửa!", "THÔNG BÁO");
     }
     else
     {
         var update = new FormUpdateSuppliers(SupplierId);
         update.ShowDialog();
         LoadSuppliers();
         SupplierId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }
Exemple #2
0
 /// <summary>
 /// Form Sửa thông tin nhà cung cấp
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void barButtonItemUpdate_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(SupplierId))
     {
         XtraMessageBox.Show("Bạn chưa chọn Khu vực cần sửa!", "THÔNG BÁO");
     }
     else
     {
         var updateArea = new FormUpdateSuppliers(SupplierId);
         updateArea.ShowDialog();
         LoadSuppliers();
         SupplierId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }
Exemple #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(SupplierId))
     {
         XtraMessageBox.Show("Vui lòng chọn một Nhà Cung Cấp cần sửa!", "THÔNG BÁO");
     }
     else
     {
         var update = new FormUpdateSuppliers(SupplierId);
         update.ShowDialog();
         LoadSuppliers();
         SupplierId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }
Exemple #4
0
 /// <summary>
 /// Form Sửa thông tin nhà cung cấp
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void barButtonItemUpdate_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(SupplierId))
     {
         XtraMessageBox.Show("Bạn chưa chọn Khu vực cần sửa!", "THÔNG BÁO");
     }
     else
     {
         var updateArea = new FormUpdateSuppliers(SupplierId);
         updateArea.ShowDialog();
         LoadSuppliers();
         SupplierId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }