private void DeleteClick( object sender, RoutedEventArgs e ) { Tray.TimelineEvents.Remove(Event); Tray.RefreshEvents(); this.Close(); }
private void SaveClick( object sender, RoutedEventArgs e ) { if (!AddNew) { CopyEvent(EditEvent, Event); } else { Event = EditEvent; Tray.TimelineEvents.Add(Event); } if (!Event.IsDuration) { Event.EndDate = Event.StartDate; } Tray.RefreshEvents(); this.Close(); }