Exemple #1
0
        private void AddEpisode(object parameter)
        {
            Episode newEpisode = new Episode();
            Window  window     = new PhilAddView();

            window.Show();
        }
Exemple #2
0
        private void AddEpisode(object parameter)
        {
            EpisodeOperation episodeOperation = new EpisodeOperation()
            {
                Status  = EpisodeOperation.OperationStatus.CANCEL,
                Episode = new Episode()
            };
            Window addEpisodeWindow = new PhilAddView(episodeOperation);

            addEpisodeWindow.ShowDialog();

            if (episodeOperation.Status != EpisodeOperation.OperationStatus.CANCEL)
            {
                Episodes.Add(episodeOperation.Episode);
                SelectedEpisode = episodeOperation.Episode;
            }
        }