예제 #1
0
		/// <summary>
		/// </summary>
		/// <param name="assembly"></param>
		/// <returns></returns>
		/// <exception cref="ArgumentNullException">
		/// <para><paramref name="assembly"/> is <see langword="null"/>.</para>
		/// </exception>
		public static ParamsCache FromAssembly(Assembly assembly)
		{
			if (assembly == null)
			{
				throw new ArgumentNullException("assembly");
			}

			ParamsCache cache = new ParamsCache();
			cache._params = ParamLoader.LoadParamsFromAssembly(assembly);
			return cache;
		}
예제 #2
0
        /// <summary>
        /// </summary>
        /// <param name="assembly"></param>
        /// <returns></returns>
        /// <exception cref="ArgumentNullException">
        /// <para><paramref name="assembly"/> is <see langword="null"/>.</para>
        /// </exception>
        public static ParamsCache FromAssembly(Assembly assembly)
        {
            if (assembly == null)
            {
                throw new ArgumentNullException("assembly");
            }

            ParamsCache cache = new ParamsCache();

            cache._params = ParamLoader.LoadParamsFromAssembly(assembly);
            return(cache);
        }
예제 #3
0
        public VisiCalcServiceProvider()
        {
            _menuItemCheckedTracker   = new NuGenMenuItemCheckedTracker();
            _toolStripAutoSizeService = new NuGenToolStripAutoSizeService();
            _windowStateTracker       = new NuGenWindowStateTracker();

            Assembly assembly = Assembly.GetExecutingAssembly();

            _operatorsCache = OperatorsCache.FromAssembly(assembly);
            _paramsCache    = ParamsCache.FromAssembly(assembly);
            _programsCache  = ProgramsCache.FromAssembly(assembly);
            _typesCache     = TypesCache.FromAssembly(assembly);
        }
        public VisiCalcServiceProvider()
        {
            _menuItemCheckedTracker = new NuGenMenuItemCheckedTracker();
            _toolStripAutoSizeService = new NuGenToolStripAutoSizeService();
            _windowStateTracker = new NuGenWindowStateTracker();
			_splashStarter = new SplashStarter();

			Assembly assembly = Assembly.GetExecutingAssembly();

			_operatorsCache = OperatorsCache.FromAssembly(assembly);
			_paramsCache = ParamsCache.FromAssembly(assembly);
			_programsCache = ProgramsCache.FromAssembly(assembly);
			_typesCache = TypesCache.FromAssembly(assembly);
        }