Example #1
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 );
        }
Example #2
0
 public void DoitTaskDefaultCtorTest()
 {
     DoitTask task = new DoitTask();
     Assert.AreEqual( task.GetDescription(), "New Task" );
 }
Example #3
0
 public void DoitTaskCtorNameSetsCorrectly()
 {
     DoitTask task = new DoitTask( "Finish Glitch" );
     Assert.AreEqual( task.GetDescription(), "Finish Glitch" );
 }
Example #4
0
 private void SetTask( DoitTask Task )
 {
     _Task = Task;
     tb_Task.Text = Task.GetDescription();
     chk_Complete.Checked = Task.IsComplete();
 }