Пример #1
0
        public TaskListView(IKernel container)
        {
            this.container = container;
            this.presenter = container.Get <ITaskListPresenter>();

            InitializeComponent();

            this.presenter.View = this;
        }
        public TaskDetailsView(IKernel container, TaskItem item)
        {
            this.container = container;
            this.item      = item;
            this.presenter = container.Get <ITaskListPresenter>();

            InitializeComponent();

            textBoxDescription.Text = item.Description;
            checkBoxDone.Checked    = item.Done;
        }