private void InitializeEZTechForecourt() { var ipAddress = ToIPAddress(textBoxEZTechIPAddress.Text); _forecourt = new EZTech(new EZTechDllIO(ipAddress, (int)numericUpDownEZTechPort.Value, (int)numericUpDownEZTechEventPort.Value)); }
private void InitializeWaynelinkForecourt() { _forecourt = new Wayne(new WayneFileIO(new System.IO.DirectoryInfo(textBoxWaynelinkDirectory.Text))); }
private void InitializeCompanyForecourt() { if (radioButtonCompanySerialPort.Checked) _forecourt = new Company(new CompanySerialIO((int)comboBoxCompanySerialPorts.SelectedItem)); else { var ipAddress = ToIPAddress(textBoxCompanyIPAddress.Text); _forecourt = new Company(new CompanyTcpIPIO(ipAddress)); } }