Esempio n. 1
0
        /// <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());
            }
        }
Esempio n. 2
0
        /// <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());
            }
        }
Esempio n. 3
0
 public void Init()
 {
     excelModeler = new ExcelModeler("UO_Model.dll","UO_Service.dll");
 }