Esempio n. 1
0
        private void btnsave_Click(object sender, EventArgs e)
        {
            taimoor_net.Service1 ser = new taimoor_net.Service1();
            bool chk  = true;
            bool spec = true;

            ser.addclass(chk, spec, comboclass.Text, txtsubject.Text);
            BindingSource source = new BindingSource();

            source.DataSource = ser.d();
            dataGV.DataSource = source;
        }
Esempio n. 2
0
 private void btndelete_Click(object sender, EventArgs e)
 {
     for (int i = dataGV.Rows.Count - 1; i >= 0; i--)
     {
         bool delete = (bool)dataGV.Rows[i].Cells[1].Value;
         if (delete == true)
         {
             bool a = false;
             taimoor_net.Service1 ser = new taimoor_net.Service1();
             ser.delete(i, a);
         }
     }
 }
Esempio n. 3
0
        private void btnsave_Click(object sender, EventArgs e)
        {
            bool isval;
            bool isvalpassed;

            taimoor_net.Service1 ser = new taimoor_net.Service1();
            ser.isvaliduser(txtusername.Text, txtpassword.Text, out isval, out isvalpassed);
            if (isval)
            {
                studentaccount frm = new studentaccount();
                frm.Show();
                this.Hide();
            }
            else
            {
                MessageBox.Show("Invalid User");
            }
        }
 private void btnsave_Click(object sender, EventArgs e)
 {
     taimoor_net.Service1 ser = new taimoor_net.Service1();
     ser.registerstudent(txtname.Text, txtpassword.Text, txtemail.Text, comboquestion.Text, txtanswer.Text, comboclass.Text);
     MessageBox.Show("User Registered");
 }
 private void btnsave_Click(object sender, EventArgs e)
 {
     taimoor_net.Service1 ser = new taimoor_net.Service1();
     ser.registerteacher(txtname.Text, txtpassword.Text, txtemail.Text, txtqualification.Text);
     MessageBox.Show("Teacher is registered Successfully Registered");
 }