Exemplo n.º 1
0
        private void register_btn_Click(object sender, EventArgs e)
        {
            WcfService.WCFServiceClient w = new WcfService.WCFServiceClient();

            WcfService.UserClass user = new WcfService.UserClass();

            w.Register(name_txtbox.Text, int.Parse(age_txtbox.Text), int.Parse(weight_txtbox.Text),
                       gender_txtbox.Text, email_txtbox.Text, password_txtbox.Text);
        }
Exemplo n.º 2
0
        private void profileForm_Load(object sender, EventArgs e)
        {
            WcfService.WCFServiceClient w = new WcfService.WCFServiceClient();

            WcfService.UserClass user = new WcfService.UserClass();


            user = w.ViewProfile(LoginForm.staticEmail);

            name_Holder.Text     = user.name;
            email_Holder.Text    = user.email;
            age_Holder.Text      = (user.age).ToString();
            gender_holder.Text   = user.gender;
            weight_Holder.Text   = (user.weight).ToString();
            password_Holder.Text = user.password;
        }
Exemplo n.º 3
0
        private void updateProfileForm_Load(object sender, EventArgs e)
        {
            WcfService.WCFServiceClient s = new WcfService.WCFServiceClient();

            WcfService.UserClass user = new WcfService.UserClass();

            user = s.ViewProfile(LoginForm.staticEmail);

            ID = user.userId;
            name_txtbox.Text     = user.name;
            email_txtBox.Text    = user.email;
            age_txtBox.Text      = (user.age).ToString();
            gender_txtBox.Text   = user.gender;
            weight_txtBox.Text   = (user.weight).ToString();
            password_txtBox.Text = user.password;
        }