Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Implemented QuitApp(wxCloseEvent) in frmMain.
[xestiaab/.git] / source / frmMain.cpp
index 025022e..4c37555 100644 (file)
@@ -327,13 +327,34 @@ frmMainADT( parent )
     
 }
 
+void frmMain::QuitApp( wxCloseEvent& event )
+{
+
+    QuitApp();
+
+}
+
 void frmMain::QuitApp( wxCommandEvent& event )
+{
+    
+    QuitApp();
+    
+}
+
+void frmMain::QuitApp()
 {
     //-------------------------------------------------------------------
     // frmMain::QuitApp: Quits the application by simply closing this
     // window which causes the exit as frmMain is the main window.
     //
     // wxCommandEvent  Accepts a referenced event command.
+    //-------------------------------------------------------------------
+     //-------------------------------------------------------------------
+    // frmMain::QuitApp: Quits the application by simply closing this
+    // window which causes the exit as frmMain is the main window.
+    //
+    // wxCommandEvent  Accepts a referenced event command.
     //-------------------------------------------------------------------
     
     //Go through the windows and close each one (be it search
@@ -398,17 +419,6 @@ void frmMain::QuitApp( wxCommandEvent& event )
     
     std::exit(0);
     
-}
-
-void frmMain::QuitApp()
-{
-    //-------------------------------------------------------------------
-    // frmMain::QuitApp: Quits the application by simply closing this
-    // window which causes the exit as frmMain is the main window.
-    //
-    // wxCommandEvent  Accepts a referenced event command.
-    //-------------------------------------------------------------------
-    
     Close();
     
 }
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy