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(); } }
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(); } }
private void BtnCancel_Click(object sender, EventArgs e) { CodeVortoAgentApiProcess.StopAgentApiProcess(); Close(); }
private void FloKaptureProcessingAgent_FormClosing(object sender, FormClosingEventArgs e) { CodeVortoAgentApiProcess.StopAgentApiProcess(); }
protected override void OnClosed(EventArgs e) { base.OnClosed(e); CodeVortoAgentApiProcess.StopAgentApiProcess(); }