void frmMain::ShowPreferencesWindow( wxCommandEvent& event )
{
+ // Close all windows first.
+
+ if (CloseAllWindows() == false)
+ {
+ return;
+ }
+
// Open the preferences window.
reloadAccounts = FALSE;
void frmMain::EditCalendar( wxCommandEvent& event )
{
+ // Close all windows first.
+
+ if (CloseAllWindows() == false)
+ {
+ return;
+ }
+
// Get the calendar data.
CDSGetCalendarInfo calendarInfo = calendarData.GetCalendar(event.GetInt());
void frmMain::DeleteCalendar( wxCommandEvent& event )
{
+ // Close all windows first.
+
+ if (CloseAllWindows() == false)
+ {
+ return;
+ }
+
CalendarProperties *calendarEventInfo = (CalendarProperties*)event.GetClientData();
// Get the calendar data.