예제 #1
0
        private void logoutBtn_Click(object sender, EventArgs e)
        {
            AccountWebService.accountPortTypeClient soap = new AccountWebService.accountPortTypeClient();

            var logout = soap.logoutAccount(Customer.Nick, Customer.Token, AppAuthority.Authority);

            if (logout == "1")
            {
            }
            else if (logout == "0")
            {
                th = new Thread(openingIndex);
                th.SetApartmentState(ApartmentState.STA);
                th.Start();
                Application.Exit();
            }
        }