Пример #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 );
        }
Пример #2
0
 private void SetTask( DoitTask Task )
 {
     _Task = Task;
     tb_Task.Text = Task.GetDescription();
     chk_Complete.Checked = Task.IsComplete();
 }