public void Refresh() { if (!(_detailView is IManageEffortDetailView)) { return; } _effortDetailView = (IManageEffortDetailView)_detailView; _projectTaskList.Clear(); _effortDetailView.Bind(_projectTaskList); FilterTaskList(); _effortDetailView.Bind(_projectTaskList); }
protected override void OnViewSet() { if (!(_detailView is IManageEffortDetailView)) { return; } _effortDetailView = (IManageEffortDetailView)_detailView; _effortDetailView.OnDeleteData += OnDeleteData; FilterTaskList(); InitFilter(); _effortDetailView.Bind(_projectTaskList); _effortDetailView.ObjectChanged += View_ObjectChanged; HasChanges = false; var message = new UpdateRibbonItemMessage(this.WorkSpaceID, this.ObjectName); EventAggregationManager.SendMessage(message); }