Пример #1
0
 private ApplicationSettings(ApplicationSettings other)
 {
     _fileName     = other._fileName;
     _fileFolder   = other._fileFolder;
     _autoUpdate   = other._autoUpdate.Clone();
     _mainWindow   = other._mainWindow.Clone();
     _dataSources  = other._dataSources.Clone();
     _quickFilters = other._quickFilters.Clone();
     _export       = other._export.Clone();
     _logViewer    = other._logViewer.Clone();
     _logFile      = other._logFile.Clone();
 }
Пример #2
0
        public ApplicationSettings(string fileName)
        {
            _fileName   = Path.GetFullPath(fileName);
            _fileFolder = Path.GetDirectoryName(_fileName);

            _autoUpdate   = new AutoUpdateSettings();
            _mainWindow   = new MainWindowSettings();
            _dataSources  = new DataSourceSettings();
            _quickFilters = new QuickFilters();
            _logViewer    = new LogViewerSettings();
            _logFile      = new LogFileSettings();
            _export       = new ExportSettings();
        }