Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();
            var       client = new ServiceReference1.WebService1SoapClient();
            XmlNode   test   = client.HelloWorld();
            XDocument doc    = new XDocument(test);

            // doc.Save("data1.xml");
            dataGridView1.DataSource = client.GetData();
        }
Ejemplo n.º 2
0
        private void login_btn_Click(object sender, EventArgs e)
        {
            ServiceReference1.WebService1SoapClient ser = new ServiceReference1.WebService1SoapClient();

            if (ser.LoginFunc(email_txtbox.Text, password_txtbox.Text))
            {
                staticEmail = email_txtbox.Text;


                LoginForm loginform = new LoginForm();
                loginform.Close();

                MainForm f = new MainForm();
                f.Show();
            }
        }
Ejemplo n.º 3
0
        private void DietPlanForm_Load(object sender, EventArgs e)
        {
            if (enterBloodForm.staticBloodPressure > 30 && enterBloodForm.staticBloodPressure < 50)
            {
                ServiceReference1.WebService1SoapClient s = new ServiceReference1.WebService1SoapClient();

                ServiceReference1.DietPlanClass plan = new ServiceReference1.DietPlanClass();

                plan = s.ViewDietPlan("typeA");

                veges_Holder.Text  = plan.veges;
                fruit_Holder.Text  = plan.fruit;
                meat_Holder.Text   = plan.meat;
                drinks_Holder.Text = plan.drinks;
                milk_Holder.Text   = plan.milk;
            }
        }