private void OnNewDomainSecurityAssociationCreated(object sender, SetProjectManagerGroupAssociationsCompletedEventArgs e) { var node = sender as INode; if (node != null) { var project = new Project(node, SecurityGroups); project.PermissionChanged += OnPermissionChanged; project.MetadataChanged += OnMetadataChanged; _projects = InsertSortedProject(project, _projects); XTreeView.ItemsSource = null; XTreeView.ItemsSource = _projects; } }
private void ClientOnSetProjectManagerGroupAssociationsCompleted(object sender, SetProjectManagerGroupAssociationsCompletedEventArgs e) { if (e.UserState is Guid) { var guid = (Guid) e.UserState; if (ObjectDictionary.ContainsKey(guid) && SetProjectManagerGroupAssociationsCompletedEventHandlers.ContainsKey(guid)) { SetProjectManagerGroupAssociationsCompletedEventHandlers[guid](ObjectDictionary[guid], e); SetProjectManagerGroupAssociationsCompletedEventHandlers.Remove(guid); ObjectDictionary.Remove(guid); } } }
private void ClientOnSetProjectManagerGroupAssociationsCompleted(object sender, SetProjectManagerGroupAssociationsCompletedEventArgs e) { if (e.UserState is Guid) { var guid = (Guid)e.UserState; if (ObjectDictionary.ContainsKey(guid) && SetProjectManagerGroupAssociationsCompletedEventHandlers.ContainsKey(guid)) { SetProjectManagerGroupAssociationsCompletedEventHandlers[guid](ObjectDictionary[guid], e); SetProjectManagerGroupAssociationsCompletedEventHandlers.Remove(guid); ObjectDictionary.Remove(guid); } } }
private void NewDomainPermissionAssisgned(object sender, SetProjectManagerGroupAssociationsCompletedEventArgs e) { MapManager.QueryDomainsCompleted.RegisterEvent(OnAcquireNewDomainsCompleted); MapManager.QueryDomainsAsync(); }