Beispiel #1
0
        /// <summary>
        /// Determine whether program options are valid and corrext
        /// settings if they appear to be invalid on current system
        /// </summary>
        internal void CheckSettingsOnLoad()
        {
            if (MainWindowPosSz == null)
            {
                MainWindowPosSz = new ViewPosSzViewModel(100, 100, 600, 500);
            }

            if (MainWindowPosSz.DefaultConstruct == true)
            {
                MainWindowPosSz = new ViewPosSzViewModel(100, 100, 600, 500);
            }

            MainWindowPosSz.SetValidPos();
        }
Beispiel #2
0
        /// <summary>
        /// Method ensures that window is visible when
        /// resolution changes between user sessions.
        /// </summary>
        /// <param name="SystemParameters_VirtualScreenLeft"></param>
        /// <param name="SystemParameters_VirtualScreenTop"></param>
        public void CheckSettingsOnLoad(double SystemParameters_VirtualScreenLeft,
                                        double SystemParameters_VirtualScreenTop)
        {
            if (MainWindowPosSz == null)
            {
                MainWindowPosSz = new ViewPosSizeModel(100, 100, 600, 500);
            }

            if (MainWindowPosSz.DefaultConstruct == true)
            {
                MainWindowPosSz = new ViewPosSizeModel(100, 100, 600, 500);
            }

            MainWindowPosSz.SetValidPos(SystemParameters_VirtualScreenLeft,
                                        SystemParameters_VirtualScreenTop);
        }