コード例 #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            string clients = string.Empty;

            using (var client = new SwipeBoxServiceReference.SwipeBoxServiceClient())
            {
                //clients = client.GetAllClients();
            }

            MessageBox.Show(clients);
        }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
            }
        }
コード例 #4
0
        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);
            }
        }