Esempio n. 1
0
		public static void Update()
		{
			CheckConfigDirectory();

			var result = GetSecurityConfiguration();
			if (!result.HasError && result.Result != null)
				SecurityConfiguration = result.Result;
			SystemConfiguration = GetSystemConfiguration();
			if (SystemConfiguration == null)
				SystemConfiguration = new SystemConfiguration();

			GKManager.DeviceConfiguration = GetDeviceConfiguration();

			SystemConfiguration.UpdateConfiguration();

			GKManager.UpdateConfiguration();
			GKManager.CreateStates();
			DescriptorsManager.Create();
			GKManager.UpdateConfiguration();

		}
Esempio n. 2
0
		static SystemConfiguration GetSystemConfiguration()
		{
			var systemConfiguration = (SystemConfiguration)GetConfiguration("Config" + Path.DirectorySeparatorChar + "SystemConfiguration.xml", typeof(SystemConfiguration));
			if (systemConfiguration != null)
			{
				systemConfiguration.AfterLoad();
			}
			else
			{
				systemConfiguration = new SystemConfiguration();
			}
			return systemConfiguration;
		}