Author: andreas
Date: 2005-06-17 22:03:09 +0100 (Fri, 17 Jun 2005)
New Revision: 4315
Modified:
trunk/pgadmin3/src/agent/dlgSchedule.cpp
Log:
change exception
Modified: trunk/pgadmin3/src/agent/dlgSchedule.cpp
===================================================================
--- trunk/pgadmin3/src/agent/dlgSchedule.cpp 2005-06-17 18:54:09 UTC (rev 4314)
+++ trunk/pgadmin3/src/agent/dlgSchedule.cpp 2005-06-17 21:03:09 UTC (rev 4315)
@@ -226,8 +226,31 @@
void dlgSchedule::OnSelChangeException(wxListEvent &ev)
{
- btnChangeException->Enable();
- btnRemoveException->Enable();
+ int sel=lstExceptions->GetSelection();
+ if (sel >= 0)
+ {
+ wxString exDate=lstExceptions->GetText(sel, 0);
+ wxString exTime=lstExceptions->GetText(sel, 1);
+ wxDateTime val, null;
+
+ if (exDate == _("<any>"))
+ calException->SetValue(null);
+ else
+ {
+ val.ParseDate(exDate);
+ calException->SetValue(val);
+ }
+ if (exTime == _("<any>"))
+ timException->SetTime(null);
+ else
+ {
+ val.ParseTime(exTime);
+ timException->SetTime(val);
+ }
+
+ btnChangeException->Enable();
+ btnRemoveException->Enable();
+ }
}