예제 #1
0
 private static void Main()
 {
     try
     {
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         Application.Run(new FloKaptureProcessingAgent());
         // CodeVortoAgentApiProcess.StopAgentApiProcess();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception.Message);
         CodeVortoAgentApiProcess.StopAgentApiProcess();
     }
 }
예제 #2
0
 public FloKaptureProcessingAgent()
 {
     try
     {
         CodeVortoAgentApiProcess.StartAgentApi();
         InitializeComponent();
         FormTabControl.SelectTab("tabPage4");
         BindAllSolutions();
     }
     catch (SystemException systemException)
     {
         Console.WriteLine(systemException.Message);
         CodeVortoAgentApiProcess.StopAgentApiProcess();
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception.Message);
         CodeVortoAgentApiProcess.StopAgentApiProcess();
     }
 }
예제 #3
0
 private void BtnCancel_Click(object sender, EventArgs e)
 {
     CodeVortoAgentApiProcess.StopAgentApiProcess();
     Close();
 }
예제 #4
0
 private void FloKaptureProcessingAgent_FormClosing(object sender, FormClosingEventArgs e)
 {
     CodeVortoAgentApiProcess.StopAgentApiProcess();
 }
예제 #5
0
 protected override void OnClosed(EventArgs e)
 {
     base.OnClosed(e);
     CodeVortoAgentApiProcess.StopAgentApiProcess();
 }