Exemple #1
0
        private void GetScaleTypeValues()
        {
            var scaleTypes = ScaleReader.GetScaleTypes();

            foreach (var st in scaleTypes)
            {
                cmboBxScaleType.Items.Add(st.scaleType);
            }
        }
Exemple #2
0
        public ScaleSettingsCntrl()
        {
            InitializeComponent();

            scaleTypes = ScaleReader.GetScaleTypes();
            GetScaleTypeValues();
            GetStopBitsValues();
            GetParityValues();

            ScaleSettings settings = (ScaleSettings)XMLConfigHandler.ReadConfig(typeof(ScaleSettings));

            if (settings != null)
            {
                UpdateComponents(settings);
            }
        }
Exemple #3
0
 public void SetReader(ScaleReader _sr)
 {
     sr = _sr;
     sr.Open();
     backgroundWorker1.RunWorkerAsync();
 }