Login

 private void btnLogin_Click(object sender, EventArgs e)
        {
            if (client == null)
                client = new TestInternal.ts.TrackService();
            try
            {
                TestInternal.ts.LoginResult result = client.Login(accountID, password);
                if (result.Status == TestInternal.ts.OperationStatus.Success)
                {
                    //Core here...                  
                    btnDispatchLatLon.Enabled = true;
                    btnDispatchAddress.Enabled = true;
                }
                else
                {
                    //Something is wrong. Core here 
                }
                //show result;
                txtResult.Text += string.Format("Status:{0}\r\nMessage:{1}", result.Status, result.Message);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }