Exemplo n.º 1
0
        private void clearToolStripMenuItem_Click(object sender, EventArgs e)
        {
            starSystem          = new StarSystem.Objects.StarSystem();
            starSystem.Changed += new ChangedEventHandler(starSystem_Changed);

            splitContainer.Panel1.Refresh();
        }
Exemplo n.º 2
0
        private void clearToolStripMenuItem_Click(object sender, EventArgs e)
        {
            starSystem = new StarSystem.Objects.StarSystem();
            starSystem.Changed += new ChangedEventHandler(starSystem_Changed);

            splitContainer.Panel1.Refresh();
        }
Exemplo n.º 3
0
        public SpaceViewForm()
        {
            InitializeComponent();

            StartStopAnimation(true);

            starSystem = new StarSystem.Objects.StarSystem();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
        }
Exemplo n.º 4
0
        public SpaceViewForm()
        {
            InitializeComponent();

            StartStopAnimation(true);

            starSystem = new StarSystem.Objects.StarSystem();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
            starSystem.CreatePlanetSystem(rand.NextDouble() * 500 + 200, rand.NextDouble() * 100 + 20, rand.NextDouble() * 5).CreatePlanet();
        }
Exemplo n.º 5
0
 public PlanetSystem(StarSystem star)
 {
     this.starSystem = star;
 }
Exemplo n.º 6
0
 public Star(StarSystem starSystem)
 {
     this.starSystem = starSystem;
     this.Color = Color.Yellow;
     this.Radius = 20;
 }
Exemplo n.º 7
0
 public PlanetSystem(StarSystem star)
 {
     this.starSystem = star;
 }
Exemplo n.º 8
0
 public Star(StarSystem starSystem)
 {
     this.starSystem = starSystem;
     this.Color      = Color.Yellow;
     this.Radius     = 20;
 }
Exemplo n.º 9
0
 public Star(StarSystem starSystem)
 {
     this.starSystem = starSystem;
 }
Exemplo n.º 10
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     starSystem = new StarSystem.Objects.StarSystem();
 }
Exemplo n.º 11
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     starSystem = new StarSystem.Objects.StarSystem();
 }
Exemplo n.º 12
0
 public PlanetSystem(StarSystem star, double orbitRadius, double orbitPosition)
 {
     this.starSystem = star;
 }