Example #1
0
        public static WindowSettings GetWindowConfiguration(string windowName)
        {
            string fileName = string.Format(_formatWindowConfigFileName, windowName);

            string pathConfig = GetConfigurationFilePath(fileName);

            WindowSettings result = WindowSettings.Get(pathConfig);

            return(result);
        }
        public static WindowSettings GetWindowConfiguration(string windowName)
        {
            string directory = Path.Combine(GetConfigurationFolder(), _folderWindowSettingsSubdirectoryName);

            if (!Directory.Exists(directory))
            {
                Directory.CreateDirectory(directory);
            }

            string fileName = string.Format(_fileNameWindowConfigFormat1, windowName);

            string oldFilePath = Path.Combine(GetConfigurationFolder(), fileName);
            string filePath    = Path.Combine(directory, fileName);

            MoveOldFile(oldFilePath, filePath);

            var result = WindowSettings.Get(filePath);

            return(result);
        }