예제 #1
0
파일: Connect.cs 프로젝트: Eric-Guo/uo-mes
        /// <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());
            }
        }
예제 #2
0
파일: Connect.cs 프로젝트: kyjb2000/uo-mes
        /// <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());
            }
        }
예제 #3
0
 public void Init()
 {
     excelModeler = new ExcelModeler("UO_Model.dll","UO_Service.dll");
 }