コード例 #1
0
        private void btnProximo_Click(object sender, EventArgs e)
        {
            if (tarefa != tarefas.Last())
            {
                int IdControle = tarefa.Id;
                int ultima     = TarefaBLL.CarregaUltimaTarefa().Id;
                tarefa = null;

                while (tarefa == null && IdControle <= ultima)
                {
                    tarefa = TarefaBLL.Get(IdControle + 1);
                    IdControle++;
                }

                if (tarefa == null)
                {
                    tarefa = TarefaBLL.CarregaUltimaTarefa();
                }

                CarregaDadosTarefa();
            }
        }
コード例 #2
0
 private void btnUltimo_Click(object sender, EventArgs e)
 {
     tarefa = TarefaBLL.CarregaUltimaTarefa();
     CarregaDadosTarefa();
 }