Пример #1
0
        private void cmdAdd_Click(object sender, EventArgs e)
        {
            localhost.Service1 myserver = new localhost.Service1();

            //localhost.PatientUser p = new localhost.PatientUser();
            //p.Age = txtage.Text;
            //p.Medicines1 = txtmedicines.Text;
            //p.Disease1 = txtdisease.Text;
            //p.PatientCNIC = Patient.SetValueForText1;
            // myserver.addinto(p,label2.Text);
            //BindingSource bs = new BindingSource();
            //BindingSource b = new BindingSource();
            myserver.addinto(txtage.Text, txtmedicines.Text, txtdisease.Text, label2.Text);
            MessageBox.Show("saved");

            //gv6.DataSource = bs;


            //showPosts();
        }