Beispiel #1
0
 /// <summary>
 /// Sets the resource service.
 /// </summary>
 /// <param name="resourceservice">The instance of resource service to use in this application.</param>
 public static void SetResourceService(Altaxo.Main.Services.IResourceService resourceservice)
 {
     if (null == sm_theResourceService)
     {
         sm_theResourceService = resourceservice;
     }
     else
     {
         throw new ApplicationException("The resource service can not be re-set to another value, only initialized for the first time!");
     }
 }
Beispiel #2
0
		/// <summary>
		/// Sets the resource service.
		/// </summary>
		/// <param name="resourceservice">The instance of resource service to use in this application.</param>
		public static void SetResourceService(Altaxo.Main.Services.IResourceService resourceservice)
		{
			if (null == sm_theResourceService)
				sm_theResourceService = resourceservice;
			else
				throw new ApplicationException("The resource service can not be re-set to another value, only initialized for the first time!");
		}