//Código do botão para cadastrar o chamado↓ private void Button_Click(object sender, RoutedEventArgs e) { List <String> ListaChamados = new List <string>(); List <String> ListaAtendimento = new List <string>(); ListaAtendimento.Add(txbCodigoAtendimento.Text); ListaAtendimento.Add(txbDescricaoChamadoFuncionario.Text); string Prioridade = ""; if (rdbUrgente.IsChecked == true) { Prioridade = "0"; } if (rdbPoucoUrgente.IsChecked == true) { Prioridade = "1"; } if (rdbSemiUrgente.IsChecked == true) { Prioridade = "2"; } if (rdbNaoUrgente.IsChecked == true) { Prioridade = "3"; } ListaAtendimento.Add(Prioridade); Modelo.Controle controle = new Modelo.Controle(); controle.CadastrarTipoAtendimento(ListaAtendimento); MessageBox.Show(controle.mensagem); }