void on_calendar1_day_selected(object obj, EventArgs args)
{
/*
when dialog starts, calendar1.Date = dateInitial changes date
and raises this and it's too early
*/
if(! signalsActive)
return;
try {
Calendar activatedCalendar = (Calendar) obj;
myDateTime = activatedCalendar.Date;
//raise a signal
fakeButtonDateChanged.Click();
}
catch {
/*
when dialog starts, calendar1.Date = dateInitial changes date
and raises this and it's too early
*/
}
}