示例#1
0
        public UCXBoxLogin(DetectionParamsItem paramsItem, LogManagerBase logManager)
        {
            InitializeComponent();

            if (null == paramsItem)
            {
                throw new ArgumentNullException("paramsItem");
            }
            if (null == logManager)
            {
                throw new ArgumentNullException("logManager");
            }

            CookieCleaner.CleanCookies("xbox");
            this.HttperParamsItem                  = paramsItem;
            this.LogManager                        = logManager;
            this.Server                            = this.HttperParamsItem.CurrentGameServer;
            this.webBrowser.DocumentCompleted     += webBrowser_DocumentCompleted;
            this.webBrowser.AllowNavigation        = true;
            this.webBrowser.ScriptErrorsSuppressed = true;
            //this.webBrowser.Document.Cookie
        }
示例#2
0
 public FrmTest()
 {
     InitializeComponent();
     CookieCleaner.CleanCookies("apple");
 }