public Form1()
        {
            InitializeComponent();

            ds = Properties.Settings.Default.dataSrc;
            simPrtTxt.Text = Properties.Settings.Default.portNo.ToString();
            simDelTxt.Text = Properties.Settings.Default.delaySec.ToString() + " ms";

            sdf = new SendDataFromFile(tca);
            xp = new XmlParser(ds);
            tca.ClientCountChanged += new TcpClientActions.ClientCountChangeDelegate(tca_ClientCountChanged);
            Thread listenThread = new Thread(new ThreadStart(tca.StartListeningForClients));
            listenThread.Start();
            xp.DumperStatusChanged += new XmlParser.DumperStatusChangedEventHandler(xp_DumperStatusChanged);
            aa.AgentStatusChanged += new AgentActions.AgentStatusChangedEventHandler(aa_AgentStatusChanged);
            xp.lv = dCodedList;
            sdf.SimStatusChanged += new SendDataFromFile.SimStatusChangedEventHandler(sdf_SimStatusChanged);
            Form3 f3 = new Form3();
            f3.delBetInpTxt.TextChanged += new EventHandler(delBetInpTxt_TextChanged);
        }
 private void simStngBtn_Click(object sender, EventArgs e)
 {
     Form f3 = new Form3();
     f3.ShowDialog();
 }