예제 #1
0
        private void writeZone4Params_Click(object sender, EventArgs e)
        {
            int min, max;

            if (int.TryParse(zone4MinBox.Text, out min) && int.TryParse(zone4MaxBox.Text, out max))
            {
                if (min >= 0 && min < 256 && max >= 0 && max < 256)
                {
                    GsmConfig main = this.Owner as GsmConfig;
                    main.SetADCParams(3, min, max);
                }
                else
                {
                    MessageBox.Show("Вводимые значения должны быть от 0 до 255", "Ошибка ввода", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }
예제 #2
0
        private void readZone4Params_Click(object sender, EventArgs e)
        {
            GsmConfig main = this.Owner as GsmConfig;

            main.GetADCParams(3);
        }
예제 #3
0
        private void readCurrADCBtn_Click(object sender, EventArgs e)
        {
            GsmConfig main = this.Owner as GsmConfig;

            main.GetCurrentADC();
        }