title: Keep my list/dictionary as globally accessible
body: <p>Ok... I'm trying to understand this whole object oriented programming but I keep ending up in a dead end.  ;)</p>
  
  <p>I'm trying to store or rather will store a great deal of data with using classes as I should. I want to store planetary data by using a class with several properties, I will then save these into a list. </p>
  
  <p>My problem is that I don't know how to make this list globally accessible, it is only accessible in the instance where it is created. </p>
  
  <p>Some sample code from my test environment below.</p>
  
  <p>OrbitalBodies.cs</p>
  
  <pre><code>class OrbitalBodies
  {
      public int BodyID { get; set; }
      public string BodyName { get; set; }
      public int BodySize { get; set; }
      public int BodyX { get; set; }
      public int BodyY { get; set; }   
  }
  </code></pre>
  
  <p>From1.cs</p>
  
  <pre><code>public void button1_Click(object sender, EventArgs e)
  {
      var bodies0 = new OrbitalBodies();
      var orbitalList = new List&lt;OrbitalBodies&gt;();
  
      bodies0.BodyID = 4;
      bodies0.BodyName = "Earth";
      bodies0.BodySize = 125;
      bodies0.BodyX = -450;
      bodies0.BodyY = 75;
  
      orbitalList.Add(bodies0);
  
      bodies0.BodyID = 0;
      bodies0.BodyName = "Sol";
      bodies0.BodySize = 500;
      bodies0.BodyX = 0;
      bodies0.BodyY = 0;
  
      orbitalList.Add(bodies0);
  
  
  
      //var orbitalDic = new Dictionary&lt;int, OrbitalBodies&gt;();
  
  
      MessageBox.Show("Planetary body name: " + Convert.ToString(orbitalList.Count()));
  }
  </code></pre>
  
  <p>I have spent a couple of hours looking up my problem here and other places but I don't know how I can access the information I put into the list other than in that single instance. My real application will have tens of thousands of orbital bodies and many other data that must be accessible throughout many forms and perhaps even other classes.</p>
  
  <p>Some help would be appreciated, what is the best solution? Do it completely differently?!?</p>