Пример #1
0
        public static void Set(int id, double alt, double az, Color color)
        {
            Reticle reticle = null;

            if (Reticles.ContainsKey(id))
            {
                reticle = Reticles[id];
            }
            else
            {
                reticle = new Reticle();
                Reticles.Add(id, reticle);
            }

            reticle.Id    = id;
            reticle.Alt   = alt;
            reticle.Az    = az;
            reticle.Color = color;
            reticle.Visible.TargetState = true;
        }
Пример #2
0
        public static void Set(int id, double alt, double az, Color color)
        {
            Reticle reticle = null;

            if (Reticles.ContainsKey(id))
            {
                reticle = Reticles[id];
            }
            else
            {
                reticle = new Reticle();
                Reticles.Add(id, reticle);
            }

            reticle.Id = id;
            reticle.Alt = alt;
            reticle.Az = az;
            reticle.Color = color;
            reticle.Visible.TargetState = true;
        }