private void button4_Click(object sender, EventArgs e) { string clients = string.Empty; using (var client = new SwipeBoxServiceReference.SwipeBoxServiceClient()) { //clients = client.GetAllClients(); } MessageBox.Show(clients); }
private void button1_Click(object sender, EventArgs e) { var clientId = Convert.ToInt32(textBox1.Text); using (var client = new SwipeBoxServiceReference.SwipeBoxServiceClient()) { var retVal = client.AddMeeting(clientId); MessageBox.Show("Added Successfully: " + retVal); } }
private void button3_Click(object sender, EventArgs e) { var email = emailPwBox.Text; var pw = passwordBox.Text; try { using (var client = new SwipeBoxServiceReference.SwipeBoxServiceClient()) { var retVal = client.AuthorizeUser(email, pw); MessageBox.Show("User authorized:" + retVal); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void button2_Click(object sender, EventArgs e) { var email = (emailText.Text); try { using (var client = new SwipeBoxServiceReference.SwipeBoxServiceClient()) { var retVal = client.GetClientByEmail(email); MessageBox.Show("Found: " + retVal.Name); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }