private void GetScaleTypeValues() { var scaleTypes = ScaleReader.GetScaleTypes(); foreach (var st in scaleTypes) { cmboBxScaleType.Items.Add(st.scaleType); } }
public ScaleSettingsCntrl() { InitializeComponent(); scaleTypes = ScaleReader.GetScaleTypes(); GetScaleTypeValues(); GetStopBitsValues(); GetParityValues(); ScaleSettings settings = (ScaleSettings)XMLConfigHandler.ReadConfig(typeof(ScaleSettings)); if (settings != null) { UpdateComponents(settings); } }
public void SetReader(ScaleReader _sr) { sr = _sr; sr.Open(); backgroundWorker1.RunWorkerAsync(); }