Beispiel #1
0
        private void FormSetting_Load(object sender, EventArgs e)
        {
            bool adm = Program.User == "Admin";

            foreach (Control control in _adminAccessControlList)
            {
                control.Enabled = adm;
            }
            tb_dopustAxis.Text     = Settings.Default.DopustimiyProcentAxis.ToString();
            tb_dopustFullMass.Text = Settings.Default.DopustimiyProcentFullMass.ToString();
            tb_index_goda.Text     = Settings.Default.YearIndex.ToString();
            checkBox1.Checked      = Settings.Default.Klimat_usloviya;
            tb_id_car.Text         = SpravochnikUtil.IdentificationNumber.ToString();
            cb_com_name.Text       = Settings.Default.COMPortName;
            cb_com_name.Items.AddRange(ComInfo.GetListCOM());
            tb_inaccuracy_scales.Text   = Settings.Default.InaccuracyScales.ToString();
            tb_inaccuracy_roulette.Text = Settings.Default.InaccuracyRoulette.ToString();
        }