Esempio n. 1
0
        private void metroTile4_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("هل تريد بالفعل حذف الطالب المحدد ؟", "حذف الطالب", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == DialogResult.Yes)
            {
                Std.DelStd(int.Parse(metroGrid1.CurrentRow.Cells[0].Value.ToString()));
                MessageBox.Show("تمت عمليه الحذف بنجاح", "حذف ", MessageBoxButtons.OK, MessageBoxIcon.Information);

                this.metroGrid1.DataSource = Std.GetAllStd();
            }
        }