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)); } }
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)); } }
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); } }
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)); } }