public void ShowPopup(DateTime date, VenueInfo info, string text, EventInfoCallback callback) { this.view.uiContainer.Style.Display = "";//TODO: popup this.callback = callback; this.view.uiEventName.Text = text != null ? text : ""; this.view.uiEventName.Focus(); if (info != null) { this.view.uiVenueGetter.SetVenue(info); } else { this.view.uiVenueGetter.Focus(); } if (date != null) { this.view.uiCal.SetDate(date); } else { this.view.uiCal.Focus(); } if (date != null && info != null && callback != null) { this.view.uiEventName.RequestSuggestions(); } }
public void CreateEventUsingEventInfo(EventInfo eventInfo, EventInfoCallback callback) { if (eventInfo == null) { this.ShowPopup(null, null, null, callback); } else { this.ShowPopup(eventInfo.date, eventInfo.venueInfo, eventInfo.name, callback); } }