Exemplo n.º 1
0
        protected override void DeleteFromCenterList()
        {
            Star star = Center as Star;

            star.planets.Remove(this);
        }
Exemplo n.º 2
0
        public Planet(string name, double radius, Star center, double orbit, double period, string texturePath) : base(name, radius, center, orbit, period, texturePath)
        {
            center.planets.Add(this);

            spaceObject.MouseLeftButtonDown += ShowChildren;
        }