コード例 #1
0
        public TmeCalculator()
        {
            InitializeComponent();

            //m_Service = new TotalEfficiencyRateCalculatorService("Data Source=172.16.0.102;Initial Catalog=DBx;User ID=dbxuser;Password='';Persist Security Info=True;");
            m_Setting = new TmeCalculatorService.Properties.Settings();

            m_Service = new TotalEfficiencyRateCalculatorService(m_Setting.DBxConnectionString);
            m_Service.ErrorCatched += new ErrorCatchedEventHandler(m_Service_ErrorCatched);

            m_EL        = new EventLog();
            m_EL.Source = "TmeCalculatorService";
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: worrawutK/EMS-Service
 private void Form1_Load(object sender, EventArgs e)
 {
     m_Service = new TotalEfficiencyRateCalculatorService(EmsCalcutorServiceWinApp.Properties.Settings.Default.DBxConnectionString);
     //m_Service.Start();
 }