コード例 #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) { }
 }
コード例 #2
0
 private void Form2_FormClosing(object sender, FormClosingEventArgs e)
 {
     OEControl.disconnect();
 }