Ejemplo n.º 1
0
        private UltimaPropertyCounter GetPropertyCounter(int cliloc, int type = 0)
        {
            UltimaPropertyCounter counter = null;

            if (!_Properties.ContainsKey(cliloc))
            {
                switch (type)
                {
                default: counter = new UltimaPropertyCounter(cliloc); break;

                case 1: counter = new UltimaPropertyRangeCounter(cliloc); break;

                case 2: counter = new UltimaPropertyCounterString(cliloc); break;
                }

                _Properties.Add(cliloc, counter);
            }
            else
            {
                counter = _Properties[cliloc];
            }

            return(counter);
        }
Ejemplo n.º 2
0
        private UltimaPropertyCounter GetPropertyCounter( int cliloc, int type = 0 )
        {
            UltimaPropertyCounter counter = null;

            if ( !_Properties.ContainsKey( cliloc ) )
            {
                switch ( type )
                {
                    default: counter = new UltimaPropertyCounter( cliloc ); break;
                    case 1: counter = new UltimaPropertyRangeCounter( cliloc ); break;
                    case 2: counter = new UltimaPropertyCounterString( cliloc ); break;
                }

                _Properties.Add( cliloc, counter );
            }
            else
                counter = _Properties[ cliloc ];

            return counter;
        }