예제 #1
0
 /// <summary>
 /// Sets the fit function service.
 /// </summary>
 /// <param name="fitFunctionService">The instance of fit function service to use in this application.</param>
 public static void SetFitFunctionService(Altaxo.Main.Services.IFitFunctionService fitFunctionService)
 {
     if (null == sm_theFitFunctionService)
     {
         sm_theFitFunctionService = fitFunctionService;
     }
     else
     {
         throw new ApplicationException("The fit function service can not be re-set to another value, only initialized for the first time!");
     }
 }
예제 #2
0
파일: Current.cs 프로젝트: Altaxo/Altaxo
		/// <summary>
		/// Sets the fit function service.
		/// </summary>
		/// <param name="fitFunctionService">The instance of fit function service to use in this application.</param>
		public static void SetFitFunctionService(Altaxo.Main.Services.IFitFunctionService fitFunctionService)
		{
			if (null == sm_theFitFunctionService)
				sm_theFitFunctionService = fitFunctionService;
			else
				throw new ApplicationException("The fit function service can not be re-set to another value, only initialized for the first time!");
		}