/// <summary> /// Implements the constructor for the Add-in object. /// Place your initialization code within this method. /// </summary> public Connect() { string dllPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); excelModeler = new ExcelModeler(dllPath + @"\\UO_Model.dll", dllPath + @"\\UO_Service.dll"); using (RegistryKey rkSetting = Registry.CurrentUser.CreateSubKey(ExcelModeler.regSettingPath)) { System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo((string)rkSetting.GetValue("Language", "en-US")); NeedShowCleanButton = bool.Parse(rkSetting.GetValue("ShowClean", "False").ToString()); } }
public void Init() { excelModeler = new ExcelModeler("UO_Model.dll","UO_Service.dll"); }