public void continuidade(MaskedTextBox usado, MaskedTextBox texto1, MaskedTextBox texto2) { if (podeCodigo(Convert.ToInt16(usado.Text))) { if (texto1.Visible) { if (texto1.Text.Length>0 && podeCodigo(Convert.ToInt16(texto1.Text))) { if (texto2.Visible) { if (texto2.Text.Length > 0 && podeCodigo(Convert.ToInt16(texto2.Text))) { preencherLabelDescritivo(new Banco().codTamanho(cbTamanho.Text) , new Banco().codDivisorByDescricao(cbMista.Text)); gbQtd.Visible = true; gbQtd.Focus(); } else { texto2.Clear(); texto2.Focus(); } } else { preencherLabelDescritivo(new Banco().codTamanho(cbTamanho.Text) , new Banco().codDivisorByDescricao(cbMista.Text)); gbQtd.Visible = true; gbQtd.Focus(); } } else { texto1.Clear(); texto1.Focus(); } } else { preencherLabelDescritivo(new Banco().codTamanho(cbTamanho.Text) , new Banco().codDivisorByDescricao(cbMista.Text)); gbQtd.Visible = true; gbQtd.Focus(); } } else { usado.Clear(); usado.Focus(); } }