private void btnEditPresentation_Click(object sender, RoutedEventArgs e) { if (lbPresentations.SelectedItem != null) { Webb.Playbook.Data.Presentation presentation = new Webb.Playbook.Data.Presentation(); presentation.Load((this.lbPresentations.SelectedItem as FrameworkElement).Tag.ToString()); SelectPlayWindow spw = new SelectPlayWindow(fRootViewModel, pRootViewModel, presentation) { Owner = this, }; if (spw.ShowDialog().Value&& spw.Presentation != null) { presentation = spw.Presentation; presentation.Save(spw.PresentationPath); LoadPresentations(); } } else { MessageBox.Show("Please select a presentation"); } }
private void btnCreatePresentation_Click(object sender, RoutedEventArgs e) { SelectPlayWindow spw = new SelectPlayWindow(fRootViewModel, pRootViewModel) { Owner = this, }; if (spw.ShowDialog().Value&& spw.Presentation != null) { Webb.Playbook.Data.Presentation presentation = spw.Presentation; presentation.Save(spw.PresentationPath); LoadPresentations(); } }