Ejemplo n.º 1
0
        /// Quit The Application
        public void Quit()
        {
            Restart = false;

            // Quitting Event
            if (loginDialog != null && LoginDialogClosed != null)
            {
                LoginDialogClosed(loginDialog);
                loginDialog.Hide();
                loginDialog.Destroy();
            }
            loginDialog = null;

            if (mainWindow != null && MainWindowClosed != null)
            {
                MainWindowClosed(mainWindow);
                mainWindow.Hide();
                mainWindow.Destroy();
            }
            mainWindow = null;

            // Do User Logout
            if (UserLogout != null)
            {
                UserLogout(myInfo);
            }
            Protocol.MyInfo.Logout();
            this.myInfo = null;
        }
Ejemplo n.º 2
0
        private void OnLogout(object sender)
        {
            RestartApplication = true;

            // Destroy Main Window
            window.Destroy();
            window = null;

            Gtk.Application.Quit();
        }