Пример #1
0
 /// <summary>
 /// Perform a log in to the sky go site
 /// </summary>
 /// <param name="username"></param>
 /// <param name="password"></param>
 /// <returns></returns>
 protected override EventResult PerformActualLogin(string username, string password)
 {
     Browser.NewWindow += Browser_NewWindow;
     // Enable silverlight application storage initially
     _isSilverlightAppStorageEnabled = WebBrowserHelper.IsSilverlightAppStorageEnabled();
     WebBrowserHelper.ToogleSilverlightAppStorage(true);
     _username                = username;
     _password                = password;
     _currentState            = State.LoggingIn;
     ProcessComplete.Finished = false;
     ProcessComplete.Success  = false;
     Url = Properties.Resources.SkyGo_LoginUrl;
     return(EventResult.Complete());
 }