private void Setup() { Tag = _controls.AddForm(this); string tag = Tag as string; TimeLbl.Tag = _controls.Add(tag, new LabelController(TimeLbl)); DateLbl.Tag = _controls.Add(tag, new LabelController(DateLbl)); LastUpdatedLbl.Tag = _controls.Add(tag, new LabelController(LastUpdatedLbl)); StartDateLbl.Tag = _controls.Add(tag, new LabelController(StartDateLbl)); EndDateLbl.Tag = _controls.Add(tag, new LabelController(EndDateLbl)); EventCalendar.Tag = _controls.Add(tag, new CalendarController(EventCalendar)); EventListView.Tag = _controls.Add(tag, new ListViewController(EventListView)); SearchTextTb.Tag = _controls.Add(tag, new TextBoxController(SearchTextTb)); MessageDisplayTb.Tag = _controls.Add(tag, new TextBoxController(MessageDisplayTb)); EventSearchStartDp.Tag = _controls.Add(tag, new DatePickerController(EventSearchStartDp)); EventSearchEndDp.Tag = _controls.Add(tag, new DatePickerController(EventSearchEndDp)); EIV.SetControls(tag, _controls, _events, EventCal.GetId()); EIV.SetTitle("Events for Day"); EIV.UseCrudButtons(true); SEIV.SetControls(tag, _controls, _events, EventCal.GetId()); SEIV.SetTitle("Events"); SEIV.UseCrudButtons(false); MMV.SetControls(tag, _controls, _messages); MMV.SetTitle("Messages"); User_Time.SetText(TimeAndDateUtility.GetCurrentTimeString()); User_Date.SetText(TimeAndDateUtility.GetCurrentDateString()); Icon = Resources.icon; DateTimeIcon.Icon = Resources.icon; _delay = new OnDelay(); }
private void DateTicker_Tick(object sender, EventArgs e) { User_Date.SetText(TimeAndDateUtility.GetCurrentDateString()); }