void MainFrame::EditEvent(Event *EditedEvent = NULL) { EventFrame *EditedEventFrame = new EventFrame(this); if (EditedEvent == NULL && EventsList->GetSelectedItemCount() == 1) EditedEventFrame->LoadEvent(((Event *)EventsList->GetItemData(EventsList->GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED)))->BaseEvent); else EditedEventFrame->LoadEvent(EditedEvent); EditedEventFrame->Show(); }
void MainFrame::NewEvent() { EventFrame *NewEventFrame = new EventFrame(this); NewEventFrame->Show(); }