Exemplo n.º 1
0
        private bool OnLessonReceived(Event ev)
        {
            var lessonReceived = ev.get <SharedLesson>();

            Application.Current.Dispatcher.BeginInvoke(
                new Action(
                    () =>
            {
                NM.ShowConfirmDialogReceiveLesson("Réception d'une leçon",
                                                  "   " + lessonReceived.OwnerName + " vous a envoyé une leçon, voulez-vous l'ouvrir ?",
                                                  lessonReceived.Name,
                                                  lessonReceived.PDF
                                                  );
            }
                    ),
                DispatcherPriority.Normal
                );

            return(true);
        }