Esempio n. 1
0
        private void CadastrarOcupantes_Load(object sender, EventArgs e)
        {
            btnFechar.Enabled = true;

            for (int i = 0; i < fun.AutoComplete("matricula").Length; i++)
            {
                txtMatriculaOcupante.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
                txtMatriculaOcupante.AutoCompleteSource = AutoCompleteSource.CustomSource;
                txtMatriculaOcupante.AutoCompleteCustomSource.Add(fun.AutoComplete("matricula")[i]);
            }
        }
Esempio n. 2
0
 private void EditarCadastroMulta_Load(object sender, EventArgs e)
 {
     for (int i = 0; i < fun.AutoComplete("nome").Length; i++)
     {
         tbxFuncionario.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
         tbxFuncionario.AutoCompleteSource = AutoCompleteSource.CustomSource;
         tbxFuncionario.AutoCompleteCustomSource.Add(fun.AutoComplete("nome")[i]);
     }
     for (int i = 0; i < vei.AutoComplete().Length; i++)
     {
         maskedPlaca.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
         maskedPlaca.AutoCompleteSource = AutoCompleteSource.CustomSource;
         maskedPlaca.AutoCompleteCustomSource.Add(vei.AutoComplete()[i]);
     }
 }
Esempio n. 3
0
        public void CadastrarViagem_Load_1(object sender, EventArgs e)
        {
            for (int i = 0; i < fun.AutoComplete("nome").Length; i++)
            {
                txtFuncionario.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
                txtFuncionario.AutoCompleteSource = AutoCompleteSource.CustomSource;
                txtFuncionario.AutoCompleteCustomSource.Add(fun.AutoComplete("nome")[i]);
            }

            for (int i = 0; i < veic.AutoComplete().Length; i++)
            {
                tbxPlaca.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
                tbxPlaca.AutoCompleteSource = AutoCompleteSource.CustomSource;
                tbxPlaca.AutoCompleteCustomSource.Add(veic.AutoComplete()[i]);
            }
        }
Esempio n. 4
0
        private void ListarViagem_Load(object sender, EventArgs e)
        {
            for (int i = 0; i < fun.AutoComplete("matricula").Length; i++)
            {
                toolStripTextBoxMatricula.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
                toolStripTextBoxMatricula.AutoCompleteSource = AutoCompleteSource.CustomSource;
                toolStripTextBoxMatricula.AutoCompleteCustomSource.Add(fun.AutoComplete("matricula")[i]);
            }

            for (int i = 0; i < veic.AutoComplete().Length; i++)
            {
                toolStripTextBoxPlaca.AutoCompleteMode   = AutoCompleteMode.SuggestAppend;
                toolStripTextBoxPlaca.AutoCompleteSource = AutoCompleteSource.CustomSource;
                toolStripTextBoxPlaca.AutoCompleteCustomSource.Add(veic.AutoComplete()[i]);
            }
        }