Esempio n. 1
0
		static Settings()
		{
			string sysFile = Path.Combine(Application.StartupPath, SystemFileName);
			SystemOnes = new Settings() { UiLanguage = "en" };

			if (File.Exists(sysFile))
			{
				SystemOnes = LoadFromXml(sysFile);
			}

			string userFile = GetUserOnesFileName();
			UserOnes = (Settings)SystemOnes.MemberwiseClone();

			if (File.Exists(userFile))
			{
				UserOnes = LoadFromXml(userFile);
			}
		}
Esempio n. 2
0
		public static void AssignUserOnes(Settings settings)
		{
			UserOnes = settings;

			SeveUserOnes();

			if (UserOnesChanged != null)
			{
				UserOnesChanged(UserOnes, EventArgs.Empty);
			}
		}