private void quitApplication() { Context.AppQuit = true; PanelManager.Instance.CloseCurrentForm(); } }