Main Code
Main Code
using System.Data;
using System.Windows.Forms;
using System.Net.NetworkInformation;
using System.IO;
using System.IO.Ports;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Threading;
namespace LISA
{
public partial class MainForm : Form
{
private Connection objCONNECTION;
private StreamWriter sw;
public string mac_address;
public MainForm()
{
InitializeComponent();
mac_address = check_macaddress();
if (chk_comport_present == true)
{
UserControlAnalyzer ucl = new UserControlAnalyzer(row);
AnalyzerDetails.Controls.Add(ucl);
}
}
}
else
{
MessageBox.Show("No Port Configuration Available", "LISA V1.0",
MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
catch (Exception ex)
{
sw = File.AppendText(Application.StartupPath + "\\
run_analyzer_parallel.log");
sw.WriteLine(DateTime.Now.ToString() + ex.Message);
sw.Close();
}
}
/*try
{
PortConfiguration objportConfiguration = new PortConfiguration();
objportConfiguration.Show();
}
catch(Exception ex)
{
MessageBox.Show(ex.ToString());
}*/
Show();
base.WindowState = FormWindowState.Normal;
notifyIconLISA.Visible = false;
}
System.Diagnostics.Process.Start(Application.StartupPath + "\\
LISA.exe");
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
catch (Exception ex)
{
}
}
private List<Socket> activeSocketList = new List<Socket>();
private List<TcpClient> activeTcpList = new List<TcpClient>();
private List<NetworkStream> activeStreamList = new List<NetworkStream>();
private bool isClosing = false;