/// ------------------------------------------------------------------------------------ /// <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; }
/// ------------------------------------------------------------------------------------ /// <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"); }