예제 #1
0
        private void btnInserir_Click(object sender, EventArgs e)
        {
            if (txtTitulo.Text == "")
            {
                MessageBox.Show("Ué, sua tarefa não tem titulo?");
            }
            else if (tela.utilitario == 0)
            {
                MessageBox.Show("Selecione um projeto");
            }
            else
            {
                Tarefa tarefa = new Tarefa();

                tarefa._Titulo    = txtTitulo.Text;
                tarefa._Descricao = txtDescricao.Text;
                tarefa._Coluna    = 3;
                tarefa._Id_Fk     = tela.utilitario;
                BOTarefa boTarefa = new BOTarefa();

                boTarefa.BOInsereTarefa(tarefa);

                tela.limpaColuna01();
                tela.AtualizaColunas();


                this.Close();
            }
        }