Exemplo n.º 1
0
 /// <summary>
 /// Creates a new controller window, or active the existing one.
 /// </summary>
 public static void create()
 {
     if (theInstance == null)
     {
         theInstance = new RailRoadController();
     }
     theInstance.Show();
     theInstance.Activate();
 }
Exemplo n.º 2
0
 protected override void OnClosing(System.ComponentModel.CancelEventArgs e)
 {
     base.OnClosing(e);
     theInstance = null;
 }