Inheritance: IxCoreColleague, IFWDisposable
Exemplo n.º 1
0
        /// <summary>
        /// This is invoked by reflection, due to almost insuperable sphaghetti in the relevant project references,
        /// from ChoooseLangProjectDialog.CreateProjectFromLift().
        /// If you are tempted to rename the method, be sure to do so in ChoooseLangProjectDialog.CreateProjectFromLift(), as well.
        /// </summary>
        /// <param name="cache"></param>
        /// <param name="liftPath"></param>
        /// <param name="parentForm"></param>
        /// <returns></returns>
        public static bool ImportObtainedLexicon(FdoCache cache, string liftPath, Form parentForm)
        {
            var importer = new FLExBridgeListener
            {
                Cache         = cache,
                _liftPathname = liftPath,
                _parentForm   = parentForm
            };

            return(importer.ImportLiftCommon(FlexLiftMerger.MergeStyle.MsKeepNew));            // should be a new project
        }
Exemplo n.º 2
0
		/// <summary>
		/// This is invoked by reflection, due to almost insuperable sphaghetti in the relevant project references,
		/// from ChoooseLangProjectDialog.CreateProjectFromLift().
		/// If you are tempted to rename the method, be sure to do so in ChoooseLangProjectDialog.CreateProjectFromLift(), as well.
		/// </summary>
		/// <param name="cache"></param>
		/// <param name="liftPath"></param>
		/// <param name="parentForm"></param>
		/// <returns></returns>
		public static bool ImportObtainedLexicon(FdoCache cache, string liftPath, Form parentForm)
		{
			using (var importer = new FLExBridgeListener())
			{
				importer.Cache = cache;
				importer._liftPathname = liftPath;
				importer._parentForm = parentForm;
				return importer.ImportLiftCommon(FlexLiftMerger.MergeStyle.MsKeepBoth); // should be a new project
			}
		}