Example #1
0
 /// <summary>
 /// Cập nhật
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void barButtonItemUpdate_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(_employeeId))
     {
         XtraMessageBox.Show("Bạn chưa chọn Quản Lý cần sửa!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         var update = new FormUpdateManager(_employeeId);
         update.ShowDialog();
         LoadListManagers();
         _employeeId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }
Example #2
0
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(_employeeId))
     {
         XtraMessageBox.Show("Vui lòng chọn một Nhân Viên cần sửa!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         var update = new FormUpdateManager(_employeeId);
         update.ShowDialog();
         LoadListManagers();
         _employeeId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }
Example #3
0
 private void gridView1_DoubleClick(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(_employeeId))
     {
         XtraMessageBox.Show("Vui lòng chọn một Nhân Viên cần sửa!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         var update = new FormUpdateManager(_employeeId);
         update.ShowDialog();
         LoadListManagers();
         _employeeId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }
Example #4
0
 /// <summary>
 /// Cập nhật
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void barButtonItemUpdate_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(_employeeId))
     {
         XtraMessageBox.Show("Bạn chưa chọn Quản Lý cần sửa!", "THÔNG BÁO", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         var update = new FormUpdateManager(_employeeId);
         update.ShowDialog();
         LoadListManagers();
         _employeeId = null;
         EnableButtonUpdateAndDelete(false);
     }
 }