Пример #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 SetTaskContainer( DoitTaskContainer Container )
        {
            _Container = Container;

            tb_Title.Text = _Container.GetName();
            PopulateContainer();
        }
Пример #3
0
 public void ContainerDefaultCtorTest()
 {
     DoitTaskContainer container = new DoitTaskContainer();
     Assert.AreEqual( container.GetName(), "Container" );
 }