private void BuildWorkItemRefChanged(BuildWorkItemRef workItemRef) { int workItemId = 0; if (!(workItemRef is null) && int.TryParse(workItemRef.id, out workItemId)) { Context.WorkItemId = int.Parse(workItemRef.id); } }
private void CallGetWorkItem(BuildWorkItemRef workItemRef) { if (!(workItemRef is null)) { int workItemId = 0; if (int.TryParse(workItemRef.id, out workItemId)) { EventAggregator.GetEvent <Domain.WorkItemTracking.Events.GetWorkItemEvent>().Publish( new Domain.WorkItemTracking.Events.GetWorkItemEventArgs() { Organization = _collectionMainViewModel.SelectedCollection.Organization, Project = _contextMainViewModel.Context.SelectedProject, Id = workItemId }); } } }