Esempio n. 1
0
 private void DeleteClick(
     object sender,
     RoutedEventArgs e
     )
 {
     Tray.TimelineEvents.Remove(Event);
     Tray.RefreshEvents();
     this.Close();
 }
Esempio n. 2
0
        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();
        }