Exemple #1
0
        public void Close()
        {
            _configSettings.IsMaximized      = IsMaximized;
            _configSettings.MainWindowWidth  = WindowWidth;
            _configSettings.MainWindowHeight = WindowHeight;
            _configSettings.IsWordWrap       = IsWordWrap;
            var configManager = new SqlVisualizerConfigManager();

            configManager.SaveConfigSettings(_configSettings);
            if (OnClose != null)
            {
                OnClose(this, EventArgs.Empty);
            }
        }
Exemple #2
0
        public SqlCommandVisualizerViewModel()
        {
            var configManager = new SqlVisualizerConfigManager();

            _configSettings = configManager.LoadConfigSettings();
            if (_configSettings.IsMaximized)
            {
                IsMaximized = true;
            }
            else
            {
                WindowWidth  = _configSettings.MainWindowWidth;
                WindowHeight = _configSettings.MainWindowHeight;
            }
            IsWordWrap = _configSettings.IsWordWrap;
        }