Beispiel #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("هل انت متأكد من حذف المستخدم؟", "حذف المستخدم", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
     {
         Business_Layer.CLS_LOGIN login = new Business_Layer.CLS_LOGIN();
         login.DELETE_USER(dgvUsers.CurrentRow.Cells[0].Value.ToString());
         MessageBox.Show("تم الحذف بنجاح");
         this.dgvUsers.DataSource = login.SEARCH_USERS("");
     }
 }
Beispiel #2
0
 public FRM_USERS_LIST()
 {
     InitializeComponent();
     this.dgvUsers.DataSource = login.SEARCH_USERS("");
 }