Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (nomeTarefatxt.TextLength > 1 && descTarefatxt.TextLength > 1)
     {
         ControleTarefas.gerarTarefaDia(nomeTarefatxt.Text, descTarefatxt.Text);
         abaTarefa.Visible  = false;
         nomeTarefatxt.Text = "";
         descTarefatxt.Text = "";
         atualizar();
     }
     else
     {
         MessageBox.Show("Não deixe nenhum campo em branco!");
     }
 }