Пример #1
0
        private void btnSalvar_Click(object sender, EventArgs e)
        {
            rdnConfiguracoes rdn = new rdnConfiguracoes();

            Configuracoes config = new Configuracoes();
            config.regime = Convert.ToString(cbxRegime.SelectedValue);
            MessageBox.Show(rdn.editarConfiguracoes(config));
        }
Пример #2
0
        public frmConfiguracoes()
        {
            InitializeComponent();

            rdnConfiguracoes rdn = new rdnConfiguracoes();

            Configuracoes config = rdn.buscarConfig();

            int index = cbxRegime.FindString(config.regime);
            cbxRegime.SelectedIndex = index;
        }