Exemplo n.º 1
0
        private void btnCreate_Click(object sender, RoutedEventArgs e)
        {
            if (tbCustomerName.Text == "")
            {
                MessageBox.Show("Please fill out the field");
                return;
            }

            string name = tbCustomerName.Text;

            WebserviceObject wsObj = new WebserviceObject();

            wsObj = WebserviceCalls.CreateCustomer(name);

            if (wsObj.Success)
            {
                adminControlWindow.GetCustomers();
                Close();
            }
            else
            {
                MessageBox.Show(wsObj.Response.ToString());
            }
        }