Example #1
0
 /// <summary>
 /// <para>Close the application if it is currently active.</para>
 /// </summary>
 public void Close()
 {
     lock (typeof(Application))
     {
         if (display != null)
         {
             display.Close();
             display = null;
         }
         if (primary == this)
         {
             primary = null;
         }
     }
 }