private void SelectedActionCardContext_ContextChanged(object sender, ContextChangedEventArgs<BaseActionCard> e) { if (e.NewContext == null || ActionCards.Contains(e.NewContext)) { selectedActionCardContext.ContextChanged -= SelectedActionCardContext_ContextChanged; SelectedActionCard = e.NewContext; selectedActionCardContext.ContextChanged += SelectedActionCardContext_ContextChanged; } }
void _contextManager_ContextChanged(object sender, ContextChangedEventArgs e) { UpdateText(e.NewContext); }
private void ContextManager_ContextChanged(object sender, ContextChangedEventArgs e) { }
private void TeamFoundationHostOnContextChanged(object sender, ContextChangedEventArgs contextChangedEventArgs) { if (contextChangedEventArgs.TeamProjectCollectionChanged) { CancelBackgroundWorker(); var domainUri = (contextChangedEventArgs.NewContext == null) ? null: contextChangedEventArgs.NewContext.DomainUri(); if (domainUri == null) { this.Logger().Trace("Disconnected"); Application.Current.Dispatcher.Invoke(() => ProjectCollectionModels.Clear()); } else { _populateBackgroundWorker.RunWorkerAsync(domainUri); } } else if (contextChangedEventArgs.TeamProjectChanged) { Application.Current.Dispatcher.InvokeAsync(() => { var activeProjectContext = teamPilgrimVsService.ActiveProjectContext; foreach (var projectModel in ActiveProjectCollectionModel.ProjectModels) { projectModel.IsActive = projectModel.Project.Name == activeProjectContext.ProjectName; } }, DispatcherPriority.Normal); } }
protected override void ContextChanged(object sender, ContextChangedEventArgs e) { UpdateVisible(); base.ContextChanged(sender, e); }
protected override void OnContextChanged(object sender, ContextChangedEventArgs e) { Refresh(); }
private void SelectedPlayer_ContextChanged(object sender, ContextChangedEventArgs<Player> e) { Icons icons = new Icons(); switch (selectedPlayer.Context.Role) { case "Dispatcher": content = icons["pawnPurple"]; break; case "Medic": content = icons["pawnOrange"]; break; case "Scientist": content = icons["pawnWhite"]; break; case "Quarantine Specialist": content = icons["pawnDarkGreen"]; break; case "Researcher": content = icons["pawnBrown"]; break; case "Operations Expert": content = icons["pawnGreen"]; break; } Point location = GetLocation(); Left = location.X; Top = location.Y; NotifyPropertyChanged("Content"); }
/// <summary> /// ContextChanged event handler. /// </summary> protected virtual void ContextChanged(object sender, ContextChangedEventArgs e) { }
protected override void OnContextChanged(object sender, ContextChangedEventArgs e) { Refresh(); }
protected override void ContextChanged(object sender, ContextChangedEventArgs e) { base.ContextChanged(sender, e); }
private void ContextChanged(object sender, ContextChangedEventArgs<ActionManager> e) { NotifyPropertyChanged("ActionManager"); }
private void selectedPlayer_ContextChanged(object sender, ContextChangedEventArgs<Player> e) { NotifyPropertyChanged("CityCards"); NotifyPropertyChanged("ActionCards"); NotifyPropertyChanged("SelectedPlayerName"); }
private void TfsContextOnConnectionChanged(object sender, ContextChangedEventArgs e) { UpdateIdentities(); }
private void ContextManager_ContextChanged(object sender, ContextChangedEventArgs e) { SetVersionControlServer(e.NewContext); }
protected virtual void OnContextChanged(object sender, ContextChangedEventArgs e) { }
protected override void ContextChanged(object sender, ContextChangedEventArgs e) { UpdateVisible(); base.ContextChanged(sender, e); }
/// <summary> /// the method is invoked when the context of the current team explorer window has changed. /// </summary> /// <param name="sender">The sender object</param> /// <param name="e">The event arguments</param> protected override async void ContextChanged(object sender, ContextChangedEventArgs e) { base.ContextChanged(sender, e); // If the team project collection or team project changed, refresh the data for this section if (e.TeamProjectCollectionChanged || e.TeamProjectChanged) { await this.RefreshAsync(); } }
/// <summary> /// Event handler for the <see cref="ITeamFoundationContextManager.ContextChanged" /> event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="ContextChangedEventArgs" /> instance containing the event data.</param> protected virtual void OnTeamFoundationContextChanged(object sender, ContextChangedEventArgs e) { }
private void SelectedPlayer_ContextChanged(object sender, ContextChangedEventArgs<Player> e) { RaiseChangeNotificationRequested(new CustomEventArgs.ChangeNotificationRequestedArgs(typeof(IAnchorViewModel))); RaiseChangeNotificationRequested(new CustomEventArgs.ChangeNotificationRequestedArgs(typeof(ICommandsViewModel))); NotifyChanges(); }