Esempio n. 1
0
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();
}
Esempio n. 2
0
void MainFrame::NewEvent() {
	EventFrame *NewEventFrame = new EventFrame(this);
	NewEventFrame->Show();
}