void OnTimelineDoubleClick( DateTime date, Point point ) { EditEventWindow edit; if (timeline.EditMode) { edit = new EditEventWindow(); edit.Tray = timeline; edit.AddNew = true; edit.EditEvent = new TimelineEventEx() { StartDate = date, EndDate = date, TopOverride = point.Y + timeline.EventCanvasOffset }; edit.Show(); } }
void OnEditClick( TimelineEventEx obj ) { EditEventWindow edit; edit = new EditEventWindow(); edit.Tray = timeline; edit.Event = obj; edit.Show(); }
private void OnAddNewEventClick( object sender, RoutedEventArgs e ) { EditEventWindow edit; edit = new EditEventWindow(); edit.Tray = timeline; edit.AddNew = true; edit.Show(); }