public void Shutdown()
 {
     Status = PresentationStatus.Hide;
     if (CurrentPresentation != null)
     {
         CurrentPresentation.Close();
         CurrentPresentation = null;
     }
     Blackscreen.Close();
 }
Пример #2
0
        private void HandleKeyUp(object sender, KeyEventArgs e)
        {
            if (e.Key.Equals(Key.F))
            {
                Blackscreen.WindowState = WindowState.Minimized;

                //if (fullscreen)
                //{
                //    Blackscreen.WindowState = WindowState.Normal;
                //}
                //else
                //{
                //    Blackscreen.WindowState = WindowState.Maximized;
                //}
                //fullscreen = !fullscreen;
            }
            else if (e.Key.Equals(Key.C))
            {
                Blackscreen.Close();
            }
        }