Exemple #1
0
 private void addCHFByUID_Click(object sender, EventArgs e)
 {
     if (!switchWebService.Checked)
     {
         WebServiceClient_REST.addCHFByUID(Convert.ToInt32(userId.Text), Convert.ToDecimal(chf.Text));
     }
     else
     {
         WebServiceClient_Soap.addCHFByUID(Convert.ToInt32(userId.Text), Convert.ToDecimal(chf.Text));
     }
 }
Exemple #2
0
 private void getusernameByUID_Click(object sender, EventArgs e)
 {
     if (!switchWebService.Checked)
     {
         usernameResult.Text = WebServiceClient_REST.getUsernameByUserID(Convert.ToInt32(userId.Text));
     }
     else
     {
         usernameResult.Text = WebServiceClient_Soap.getUsernameByUserID(Convert.ToInt32(userId.Text));
     }
 }
Exemple #3
0
 private void getAccount_Click(object sender, EventArgs e)
 {
     if (!switchWebService.Checked)
     {
         Account.Text = WebServiceClient_REST.getUserAccount(username.Text);
     }
     else
     {
         Account.Text = WebServiceClient_Soap.GetUserAccount(username.Text);
     }
 }
Exemple #4
0
 private void addCHFByUserName_Click(object sender, EventArgs e)
 {
     if (!switchWebService.Checked)
     {
         WebServiceClient_REST.addCHFByUserName(username.Text, Convert.ToDecimal(chf.Text));
     }
     else
     {
         WebServiceClient_Soap.addCHFByUserName(username.Text, Convert.ToDecimal(chf.Text));
     }
 }