Exemple #1
0
        public Security GetSecurityForName(string securityName, string securityClass)
        {
            if (_securities == null)
            {
                return(null);
            }

            if (!NamesPaper.Contains(securityName))
            {
                NamesPaper.Add(securityName);
            }

            return(_securities.Find(securiti => securiti.Name == securityName));
        }
Exemple #2
0
        /// <summary>
        /// Запрос на предмет наличия бумаги у сервера qsh
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        public OsEngine.Entity.Security GetSecurityForName(string name)
        {
            if (_securities == null)
            {
                return(null);
            }

            if (!NamesPaper.Contains(name))
            {
                NamesPaper.Add(name);
            }

            return(_securities.Find(securiti => securiti.Name == name));
        }