public static void Show()
        {
            if (prefs == null)
            {
                prefs = new PreferenceDialog();
            }

            prefs.Dialog.Present();
        }
		public static void Show ()
		{
			if (prefs == null)
				prefs = new PreferenceDialog ();
			
			prefs.Dialog.Present ();
		}
 private void HandleDestroyed(object sender, EventArgs args)
 {
     prefs = null;
 }
		private void HandleDestroyed (object sender, EventArgs args)
		{
			prefs = null;
		}