Inheritance: System.Windows.Forms.Form
Beispiel #1
0
        public MainForm()
        {
            InitializeComponent();if (transDefaultFormMainForm == null)    transDefaultFormMainForm = this;

            btnOpenOrClosePort.Click += new System.EventHandler( btnOpenOrClosePort_Click );
            btnPort.Click += new System.EventHandler( btnPort_Click );
            Load += new System.EventHandler(Form1_Load);
            tmrLookForPortChanges.Tick += new System.EventHandler( tmrLookForPortChanges_Tick );
        }
Beispiel #2
0
        public MainForm()
        {
            InitializeComponent();if (transDefaultFormMainForm == null)	transDefaultFormMainForm = this;

            btnOpenOrClosePort.Click += new System.EventHandler( btnOpenOrClosePort_Click );
            btnPort.Click += new System.EventHandler( btnPort_Click );
            Load += new System.EventHandler(Form1_Load);
            tmrLookForPortChanges.Tick += new System.EventHandler( tmrLookForPortChanges_Tick );
            GetSettings();
            SetTables();
            COMPortTerminal.RequestThread requests = new COMPortTerminal.RequestThread(RequestBox);
            requests.populateReqs();
            Thread requestPoll = new Thread(new ThreadStart(requests.Poll));
        }