/// <summary> /// Class constructor /// </summary> /// <param name="ownerOfAddIn">Owner of addin</param> public AttributeFrequencyIce(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn) { this.ownerOfAddIn = ownerOfAddIn; resManager = new ResourceManager("Ferda.FrontEnd.AddIns.AttributeFr.Localization_en-US", Assembly.GetExecutingAssembly()); localizationString = "en-US"; }
/// <summary> /// Class constructor /// </summary> /// <param name="ownerOfAddIn">Owner of addin</param> public ExplainTableIce(Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn) { this.ownerOfAddIn = ownerOfAddIn; //setting the ResManager resource manager and localization string resManager = new ResourceManager("Ferda.FrontEnd.AddIns.ExplainTable.Localization_en-US", Assembly.GetExecutingAssembly()); localizationString = "en-US"; }
/// <summary> /// Class constructor /// </summary> /// <param name="localePrefs">localeprefs</param> /// <param name="tprx">Proxy</param> /// <param name="ownerOfAddIn">Owner of addin</param> public WaitDialog(string[] localePrefs, AbstractLMTaskFunctionsPrx tprx, Ferda.FrontEnd.AddIns.IOwnerOfAddIn ownerOfAddIn) { //setting the ResManager resource manager and localization string string locale; try { locale = localePrefs[0]; localizationString = locale; locale = "Ferda.FrontEnd.AddIns.WaitDialog.Localization_" + locale; resManager = new ResourceManager(locale, Assembly.GetExecutingAssembly()); } catch { resManager = new ResourceManager("Ferda.FrontEnd.AddIns.WaitDialog.Localization_en-US", Assembly.GetExecutingAssembly()); localizationString = "en-US"; } this.KeyDown += new KeyEventHandler(WaitDialog_KeyDown); this.tprx = tprx; this.ownerOfAddIn = ownerOfAddIn; InitializeComponent(); this.ChangeLocale(this.resManager); ExceptionCatcher catcher = new ExceptionCatcher(this.ownerOfAddIn, this); this.tprx.runAction_async(catcher); }