Example #1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     OEControl.stop();
     OEControl.disconnect();
     // clean up
     //if (theApp != null)
     //{
     //    try { theApp.Kill(); }
     //    catch (Exception) { }
     //}
     // shutdown FDPhoneRecognition.exe
     try
     {
         Process ui = new Process();
         ui.StartInfo.FileName        = System.IO.Path.Combine(System.Environment.GetEnvironmentVariable("FDHOME"), "AVIA", "AviaGetPhoneSize.exe");
         ui.StartInfo.Arguments       = "-queryisp -Kill-Service";
         ui.StartInfo.UseShellExecute = false;
         ui.StartInfo.CreateNoWindow  = true;
         ui.StartInfo.WindowStyle     = ProcessWindowStyle.Hidden;
         ui.Start();
     }
     catch (Exception) { }
 }
Example #2
0
 private void ButtonStop_Click(object sender, EventArgs e)
 {
     OEControl.stop();
 }