Example #1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            TransService ts       = new TransService();
            string       username = this.txtUserName.Text;
            string       password = this.txtPassword.Text;

            try
            {
                string result = ts.Login(username, password);
                if (LotteryServiceDelegate != null)
                {
                    LotteryServiceDelegate(true);
                }
            }
            catch
            {
            }
            finally
            {
                Param.Count = 1;
            }

            this.Close();
        }