Exemplo n.º 1
0
        private void btnUpdate_Click(object sender, EventArgs e)
        {
            res.Tables[0].AcceptChanges();
            ViewMarksWS.ViewMarksWebService vmws = new PakTurk_school_system.ViewMarksWS.ViewMarksWebService();
            string s;

            s = vmws.SaveStudentMarksBLL(t.li.user, cmbClass.Text, cmbSubject.Text, ref res);
            MessageBox.Show(s, "Report");
        }
Exemplo n.º 2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (cmbClass.Text == "" || cmbSubject.Text == "")
     {
         MessageBox.Show("All Fields must be provided", "Attention!");
     }
     else
     {
         res.Tables[0].Rows[0].AcceptChanges();
         //MessageBox.Show(res.Tables[0].Rows[0][4].ToString(), "checking");
         ViewMarksWS.ViewMarksWebService vmws = new PakTurk_school_system.ViewMarksWS.ViewMarksWebService();
         string s;
         s = vmws.SaveStudentMarksBLL(t.li.user, cmbClass.Text, cmbSubject.Text, ref res);
         MessageBox.Show(s, "Report");
     }
 }