Ejemplo n.º 1
0
        public void CompleteTask( DoitTask Task, DoitTaskContainer Container )
        {
            Task.CompleteTask();
            Container.RemoveTask( Task );

            var CompletionContainer = GetCompletionContainer( Task.DateCompleted().Value );
            CompletionContainer.AddTask( Task );
        }
Ejemplo n.º 2
0
        private void TaskCompletedEvent( DoitTaskContainer Container, DoitTask Task )
        {
            string message = Container.GetName() + Environment.NewLine;

            if( Task.IsComplete() )
                message += Task.GetDescription() + " Completed on: " + Task.DateCompleted().Value.ToShortDateString();
            else
                message += Task.GetDescription() + " Reset";

            MessageBox.Show( message );
        }