/// <summary>
        /// Load settings from Xml-file
        /// </summary>
        /// <param name="userFileName">Xml-file name in user folder</param>
        /// <param name="systemFileName">Xml-file name in program folder</param>
        /// <returns>List of settings</returns>
        public static SettingsInfo LoadFromXml(string userFileName, string systemFileName)
        {
            var settings = LoadAsBaseFromXml <SettingsInfo>(userFileName);

            settings.SystemSettings = systemFileName != null?
                                      SystemSettingsInfo.LoadFrom(systemFileName)
                                          : new SystemSettingsInfo();

            if (String.IsNullOrEmpty(settings.SystemSettings.PublicKeyXmlSign))
            {
                settings.SystemSettings.PublicKeyXmlSign = Data.PredefinedProperties.PublicKeySign;
            }

            if (String.IsNullOrEmpty(settings.SystemSettings.PrivateKeyXmlDecrypt))
            {
                settings.SystemSettings.PrivateKeyXmlDecrypt = Data.PredefinedProperties.PrivateKeyDecrypt;
            }

            return(settings);
        }
 /// <summary>
 /// Get standart system setting.
 /// </summary>
 /// <param name="systemFileName">Setting path.</param>
 /// <returns>System setting object.</returns>
 public static SystemSettingsInfo GetSystemSetting(string systemFileName)
 {
     return(!string.IsNullOrEmpty(systemFileName) ?
            SystemSettingsInfo.LoadFrom(systemFileName)
         : new SystemSettingsInfo());
 }