Ejemplo n.º 1
0
 public bool Login(string tradingAccount, string tradingPassword, bool tradingDemo)
 {
     try {
         if (CoreFX.IsLoggedIn)
         {
             CoreFX.Logout();
         }
         return(CoreFX.LogOn(tradingAccount, "", tradingPassword, tradingDemo));
     } catch (Exception exc) {
         Log = exc;
         return(false);
     } finally {
         RaisePropertyChanged(() => IsLoggedIn);
     }
 }