private void btnAdd_Click(object sender, EventArgs e) { if (txtName.Text == string.Empty) { MessageBox.Show(" يجب ادخال الاسم العلمى"); return; } CLASS_SCEINTIFICNAME.SP_ADDSCEINTIFICNAME(txtName.Text); MessageBox.Show("تم الاضافة"); txtName.Text = string.Empty; }
private void btnDelete_Click(object sender, EventArgs e) { CLASS_SCEINTIFICNAME.SP_SCEINTIFICNAMEDELETE(int.Parse(txtSNID.Text)); MessageBox.Show("تم الحذف"); btnSelectALL_Click(null, null); }
private void btnDisplay_Click(object sender, EventArgs e) { DataTable DT = CLASS_SCEINTIFICNAME.SP_SELCTSERCHSCEINTIFICNAME(txtSearch.Text); dgvSceintifiecName.DataSource = DT; }
private void btnUpdate_Click(object sender, EventArgs e) { CLASS_SCEINTIFICNAME.SP_SCEINTIFICNAMEUPATE(int.Parse(txtSNID.Text), txtSnName.Text); MessageBox.Show("تم التعديل بنجاح"); btnSelectALL_Click(null, null); }
private void btnSelectALL_Click(object sender, EventArgs e) { DataTable DT = CLASS_SCEINTIFICNAME.SP_SELCTALLSCEINTIFICNAME(); dgvSceintifiecName.DataSource = DT; }