public AddInviteDialog CreateAddInviteDialog(EventInviteResponseDialog eventDialog) { AddInviteDialog addInviteDialog = this.InstantiateDialog <AddInviteDialog>(this.m_addInviteDialogPrefab, this.Level3Canvas); addInviteDialog.EventDialog = eventDialog; return(addInviteDialog); }
public EventInviteResponseDialog CreateEventInviteResponseDialog(CalendarEventItem eventItem) { EventInviteResponseDialog eventInviteResponseDialog = this.InstantiateDialog <EventInviteResponseDialog>(this.m_eventInviteResponseDialogPrefab, this.Level3Canvas); eventInviteResponseDialog.SetCalendarEvent(eventItem); return(eventInviteResponseDialog); }
public void OpenEventItem() { if (this.EventData.CalendarType == CalendarType.Holiday) { Singleton <DialogFactory> .Instance.CreateHolidayDetailsPanel(this.EventData); } else { EventInviteResponseDialog dialog = Singleton <DialogFactory> .Instance.CreateEventInviteResponseDialog(this); base.GetComponentInParent <EventsListPanel>().OnEventSelected(dialog); } }