Esempio n. 1
0
        private void btnLechallAdd_Click(object sender, EventArgs e)
        {
            Lechallsc lhdc = new Lechallsc();

            lhdc.Lechallcode = txtHcode.Text;
            lhdc.Numstu      = txtNumstu.Text;

            Service2Client service = new Service2Client();

            if (service.AddLecHalls(lhdc) == 1)
            {
                MessageBox.Show("Successfully Saved");
                TableLoad();
            }
            else
            {
                MessageBox.Show("Error.. Please Try Again");
            }
        }