Exemplo n.º 1
0
        public SpaceViewForm()
        {
            InitializeComponent();

            StartStopAnimation(true);

            star = new Star();
            star.CreatePlanet(rand.NextDouble() * 100 + 20, rand.NextDouble() * 5);
            star.CreatePlanet(rand.NextDouble() * 100 + 20, rand.NextDouble() * 5);
        }
Exemplo n.º 2
0
 public Planet(Star star, double orbitRadius, double orbitPosition)
 {
     this.star = star;
     this.orbitRadius = orbitRadius;
     this.orbitPosition = orbitPosition;
 }
Exemplo n.º 3
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     star = new Star();
 }
Exemplo n.º 4
0
 public Planet(Star star, double orbitRadius, double orbitPosition)
 {
     this.star          = star;
     this.orbitRadius   = orbitRadius;
     this.orbitPosition = orbitPosition;
 }
Exemplo n.º 5
0
 private void clearToolStripMenuItem_Click(object sender, EventArgs e)
 {
     star = new Star();
 }