Exemplo n.º 1
0
 public void GetAccountStateFromUCLogin(AccountItem account, AutoResetEvent resetEvent)
 {
     if (ucLogin == null)
     {
         throw new InvalidOperationException("ucLogin");
     }
     ucLogin.GetState(account, resetEvent);
 }
Exemplo n.º 2
0
        private void FrmTest_Load(object sender, EventArgs e)
        {
            DetectionParamsItem paramsItem = new DetectionParamsItem();

            paramsItem.CurrentGameServer = GameServers.XBOXServer;
            AccountItem account = new AccountItem();

            account.User     = "******";
            account.Password = "******";
            UCXBoxLogin uc = new UCXBoxLogin(paramsItem, XBOXLogManager.Instance)
            {
                Dock = DockStyle.Fill
            };

            panel1.Controls.Add(uc);
            using (uc)
            {
                uc.GetState(account, new AutoResetEvent(false));
            }
        }