public static void Show(string windowTitle,
                                UserControlBase control,
                                string boolUpdateMethod,
                                Window owner          = null,
                                bool isTopMost        = false,
                                bool autoSize         = true,
                                bool showOkButton     = true,
                                bool showCancelButton = true,
                                double desiredSize    = 0)
        {
            try
            {
                ControlDialog.window = new ControlWindow(windowTitle, control, boolUpdateMethod, false, autoSize, showOkButton, showCancelButton);

                if (owner != null)
                {
                    ControlDialog.window.Owner = owner;
                }

                ControlDialog.window.Topmost = isTopMost;

                ControlDialog.window.Closing += ControlDialog.ControlWindow_Closing;

                if (desiredSize > ControlDialog.window.ScreenWidth().ToDouble())
                {
                    ControlDialog.FitToScreen();
                }

                ControlDialog.window.Show();
            }
            catch (Exception err)
            {
                MessageDisplay.Show(err.InnerExceptionMessage());
            }
        }
        public static bool?ShowDialog(
            string windowTitle,
            UserControlBase control,
            string boolUpdateMethod,
            bool autoSize         = true,
            bool showOkButton     = true,
            bool showCancelButton = true,
            double desiredSize    = 0)
        {
            try
            {
                ControlDialog.window = new ControlWindow(windowTitle, control, boolUpdateMethod, true, autoSize, showOkButton, showCancelButton);

                ControlDialog.window.Closing += ControlDialog.ControlWindow_Closing;

                ControlDialog.window.Owner = Application.Current.MainWindow;

                if (desiredSize > ControlDialog.window.ScreenWidth().ToDouble())
                {
                    ControlDialog.FitToScreen();
                }

                return(ControlDialog.window.ShowDialog());
            }
            catch (Exception err)
            {
                MessageDisplay.Show(err.InnerExceptionMessage());

                return(false);
            }
        }