Example #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="TsStringComparer"/> class.
 /// </summary>
 /// <param name="icuLocale">The icu locale that is used to create a collating engine.
 /// </param>
 /// ------------------------------------------------------------------------------------
 public TsStringComparer(string icuLocale)
 {
     m_collatingEngine   = LgIcuCollatorClass.Create();
     m_IcuCleanupManager = IcuCleanupManagerClass.Create();
     m_IcuCleanupManager.RegisterCleanupCallback(this);
     m_icuLocale = icuLocale;
 }
Example #2
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="TsStringComparer"/> class.
		/// </summary>
		/// <param name="icuLocale">The icu locale that is used to create a collating engine.
		/// </param>
		/// ------------------------------------------------------------------------------------
		public TsStringComparer(string icuLocale)
		{
			m_collatingEngine = LgIcuCollatorClass.Create();
			m_IcuCleanupManager = IcuCleanupManagerClass.Create();
			m_IcuCleanupManager.RegisterCleanupCallback(this);
			m_icuLocale = icuLocale;
		}
Example #3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        ///
        /// </summary>
        /// <param name="disposing"></param>
        /// ------------------------------------------------------------------------------------
        protected void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (m_collatingEngine != null && m_fCollatingEngineIsOpen)
                {
                    m_collatingEngine.Close();
                }

                if (m_IcuCleanupManager != null)
                {
                    m_IcuCleanupManager.UnregisterCleanupCallback(this);
                }
            }

            m_collatingEngine   = null;
            m_IcuCleanupManager = null;

            m_fDisposed = true;
        }
Example #4
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Initializes a new instance of the <see cref="NoProjectFoundDlg"/> class.
        /// </summary>
        /// <param name="helpTopicProvider"></param>
        /// ------------------------------------------------------------------------------------
        public NoProjectFoundDlg(IHelpTopicProvider helpTopicProvider)
        {
            InitializeComponent();
            //
            // helpProvider
            //
            m_helpTopicProvider             = helpTopicProvider;
            this.helpProvider               = new System.Windows.Forms.HelpProvider();
            this.helpProvider.HelpNamespace = DirectoryFinder.FWCodeDirectory + m_helpTopicProvider.GetHelpString("UserHelpFile", 0);
            this.helpProvider.SetHelpKeyword(this, m_helpTopicProvider.GetHelpString(s_helpTopic, 0));
            this.helpProvider.SetHelpNavigator(this, System.Windows.Forms.HelpNavigator.Topic);

            // make sure no open ICU files -dlh
            IIcuCleanupManager icm = IcuCleanupManagerClass.Create();

            icm.Cleanup();
            Marshal.ReleaseComObject(icm);
            icm = null;
            Logger.WriteEvent("Opening 'Welcome to FieldWorks' dialog");
        }
Example #5
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		///
		/// </summary>
		/// <param name="disposing"></param>
		/// ------------------------------------------------------------------------------------
		protected void Dispose(bool disposing)
		{
			if (disposing)
			{
				if (m_collatingEngine != null && m_fCollatingEngineIsOpen)
					m_collatingEngine.Close();

				if (m_IcuCleanupManager != null)
					m_IcuCleanupManager.UnregisterCleanupCallback(this);
			}

			m_collatingEngine = null;
			m_IcuCleanupManager = null;

			m_fDisposed = true;
		}