Пример #1
0
        private void chkRhtEnable_CheckedChanged(object sender, EventArgs e)
        {
            // TODO: NOTE: I will need to prevent races at the comm.send() function.

            // Grab & Initialize Interval
            int intRefreshRate = int.Parse(txtRhtRefresh.Text);

            tmrRhtGauge.Interval = intRefreshRate;

            // Grab moving average
            int intMovingAvg = int.Parse(txtRhtAvg.Text);

            // Initialize the StatWrapper
            rhtStatWrapper = new StatWrapper(StatWrapper.getStatType((string)cmbRhtGaugeType.SelectedItem), intMovingAvg);

            tmrRhtGauge.Enabled = chkRhtEnable.Checked;
        }
Пример #2
0
        public void loadCounterTypes()
        {
            cmbLftGaugeType.Items.Clear();
            cmbLftGaugeType.Items.AddRange(StatWrapper.getStatTypeNames());
            if (cmbLftGaugeType.Items.Count > 0)
            {
                cmbLftGaugeType.SelectedIndex = 0;
            }


            cmbRhtGaugeType.Items.Clear();
            cmbRhtGaugeType.Items.AddRange(StatWrapper.getStatTypeNames());
            if (cmbRhtGaugeType.Items.Count > 0)
            {
                cmbRhtGaugeType.SelectedIndex = 0;
            }
        }
Пример #3
0
        private void chkRhtEnable_CheckedChanged(object sender, EventArgs e)
        {
            // TODO: NOTE: I will need to prevent races at the comm.send() function.

            // Grab & Initialize Interval
            int intRefreshRate = int.Parse(txtRhtRefresh.Text);
            tmrRhtGauge.Interval = intRefreshRate;

            // Grab moving average
            int intMovingAvg = int.Parse(txtRhtAvg.Text);

            // Initialize the StatWrapper
            rhtStatWrapper = new StatWrapper(StatWrapper.getStatType((string)cmbRhtGaugeType.SelectedItem), intMovingAvg);

            tmrRhtGauge.Enabled = chkRhtEnable.Checked;
        }