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 ); }
private void SetTask( DoitTask Task ) { _Task = Task; tb_Task.Text = Task.GetDescription(); chk_Complete.Checked = Task.IsComplete(); }