public bool RemoveTalk(SessionTalk talk)
 {
     if (Talks.Any(t => t.TalkID == talk.TalkID))
     {
         talk.UnSchedule();
         ClearSlot(talk.Duration);
         Talks.Remove(talk);
         return(true);
     }
     return(false);
 }
Example #2
0
        public void Absagen()
        {
            var w    = new InfoAnRednerUndKoordinatorWindow();
            var data = (InfoAnRednerUndKoordinatorViewModel)w.DataContext;

            data.Titel = "Vortrag absagen";
            data.MailTextKoordinator = Templates.GetMailTextAblehnenKoordinator(SelectedTalk);
            data.MailTextRedner      = Templates.GetMailTextAblehnenRedner(SelectedTalk);
            w.ShowDialog();

            if (data.Speichern)
            {
                ActivityLog.AddActivity.Outside(SelectedTalk, data.MailTextKoordinator, data.MailTextRedner, false);
                DataContainer.ExternerPlan.Remove(SelectedTalk);
                Talks.Remove(SelectedTalk);
            }
        }