private void onNodeClick(MouseEventArgs e, ITreeNode node) { this.DoWithinExceptionHandler(() => { if (e.Button.Equals(MouseButtons.Right)) { _presenter.CreatePopupMenuFor((IViewItem)node.TagAsObject).At(e.Location); } _presenter.Select(node.TagAsObject.DowncastTo <IObjectBaseDTO>()); }); }
public void Handle(AddedEvent eventToHandle) { var addedObject = eventToHandle.AddedObject; if (!shouldShow(addedObject)) { return; } setupEditPresenterFor(addedObject); _eventGroupListPresenter.Edit(_eventGroupBuildingBlock); _eventGroupListPresenter.Select(addedObject); }