Example #1
0
 protected override void OnStop()
 {
     try
     {
         m_EmsService.Stop();
     }
     catch (Exception ex)
     {
         m_EL.WriteEntry(ex.Message + Environment.NewLine + ex.StackTrace, EventLogEntryType.Error);
     }
 }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     m_Service.Stop();
 }