Ejemplo n.º 1
0
        public static void ShowSecondaryWindow(UIElement uiElement, string title, WindowStartupLocation startupLocation = WindowStartupLocation.CenterScreen)
        {
            try
            {
                Logger.LogFuncUp();

                IsQuittingJob = null;

                if (uiElement == null)
                {
                    Logger.LogWarning("uiElement to be shown is null");
                    return;
                }

                WindowHostManager.HostUIe                     = Window.GetWindow(FilmingViewerContainee.FilmingViewerWindow);
                WindowHostManager.Content                     = uiElement;
                WindowHostManager.HostAdorner.Title           = title;
                WindowHostManager.HostAdorner.StartupLocation = startupLocation;
                uiElement.KeyDown -= UIElementOnKeyDown;
                uiElement.KeyDown += UIElementOnKeyDown;
                FilmingViewerContainee.Main.OnEnterSecondaryUI();
                WindowHostManager.Show();

                Logger.LogFuncDown();
            }
            catch (Exception ex)
            {
                Logger.LogFuncException(ex.Message + ex.StackTrace);
            }
        }
Ejemplo n.º 2
0
 public static void CloseSecondaryWindow()
 {
     WindowHostManager.Close();
     FilmingViewerContainee.Main.OnExitSecondaryUI(IsQuittingJob);
 }