IEnumerator PresentationCR() { startMenu.SetActive(true); yield return(new WaitForSeconds(3)); PresentationWindow.SetActive(false); }
public MainWindow() { InitializeComponent(); DataContext = this; PresentationWindow win = new PresentationWindow(); //this.Hide(); // win.WindowStartupLocation = WindowStartupLocation.CenterScreen; // win.Close(); FirstInit(); //SecondInit(); win.Show(); }
private void btnOpenPresentation_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()); Presentation.PresentationWindow pw = new PresentationWindow(presentation); pw.ShowDialog(); } else { MessageBox.Show("Please select a presentation"); } }