Exemple #1
0
 internal static HugoDataSet.CurrentPositionsRow[] GetCurrentPositionsForAccount(string acctName)
 {
     lock (s_tableLock)
     {
         if (s_currentPositions != null)
         {
             return(s_currentPositions.Select(String.Format("AcctName = '{0}'", acctName)) as HugoDataSet.CurrentPositionsRow[]);
         }
         else
         {
             return new HugoDataSet.CurrentPositionsRow[] { }
         };
     }
 }
Exemple #2
0
 internal HugoDataSet.CurrentPositionsRow[] GetCurrentPositionsForAccount(string acctName)
 {
     try
     {
         lock (m_tableLock)
         {
             if (m_currentPositions != null)
             {
                 return(m_currentPositions.Select(String.Format("AcctName = '{0}'", acctName)) as HugoDataSet.CurrentPositionsRow[]);
             }
         }
     }
     catch (Exception ex)
     {
         Error("Exception in GetCurrentPositionsForAccount", ex);
     }
     return(new HugoDataSet.CurrentPositionsRow[] { });
 }