public void Refresh(IBehaviorContext context, RefreshOptions options) { var collection = GetValue(context); Repopulate(context, collection, RefreshReason.Create(options.ExecuteRefreshDependencies)); this.RefreshNext(context, options); }
public BranchDropDownViewModelRefreshArgs BeginRefresh(RefreshReason reason, CancelEventArgs e) { return(new BranchDropDownViewModelRefreshArgs { Branches = tfsBranchProvider.GetBranches(), SelectedBranch = tfsBranchProvider.GetCurrentBranch() }); }
public override void RefreshCompleted(MergePageViewModelRefreshArgs result, RefreshReason reason, AsyncCompletedEventArgs e) { if (result == null) { return; } this.BranchDropDownViewModel.RefreshCompleted(result.BranchDropDownViewModelRefreshArgs, reason, e); this.Model.IncomingChangesets = result.IncomingChangesets; this.Model.OutgoingChangesets = result.OutgoingChangesets; }
public void OnPageRefreshStarted(RefreshReason reason) { var viewModel = this.ViewModel as TeamExplorerAsyncViewModelBase <T>; if (viewModel == null) { return; } viewModel.IsBusy = true; }
public void RefreshCompleted(object result, RefreshReason reason, AsyncCompletedEventArgs e) { var viewModel = this.ViewModel as TeamExplorerAsyncViewModelBase <T>; if (viewModel != null) { viewModel.RefreshCompleted((T)result, reason, e); } this.ViewModel.Refresh(); }
public object BeginRefresh(RefreshReason reason, CancelEventArgs e) { var viewModel = this.ViewModel as TeamExplorerAsyncViewModelBase <T>; if (viewModel == null) { return(null); } return(viewModel.BeginRefresh(reason, e)); }
public void OnPageRefreshCompleted(RefreshReason reason) { var viewModel = this.ViewModel as TeamExplorerAsyncPageViewModelBase <T>; if (viewModel == null) { return; } viewModel.IsBusy = false; }
public void Refresh(IBehaviorContext context, RefreshOptions options) { context.NotifyChange( ChangeArgs.PropertyChanged( _property, ValueStage.ValidatedValue, RefreshReason.Create(options.ExecuteRefreshDependencies) ) ); this.RefreshNext(context, options); }
public override MergePageViewModelRefreshArgs BeginRefresh(RefreshReason reason, CancelEventArgs e) { var branchArgs = this.BranchDropDownViewModel.BeginRefresh(reason, e); var incomingChangsets = changesetProvider.GetIncomingChangesets(branchArgs.SelectedBranch); var outgoingChangsets = changesetProvider.GetOutgoingChangesets(branchArgs.SelectedBranch); return(new MergePageViewModelRefreshArgs { BranchDropDownViewModelRefreshArgs = branchArgs, IncomingChangesets = incomingChangsets, OutgoingChangesets = outgoingChangsets }); }
/// <summary> /// <para> /// Refreshes the different components affected by the currently inspected /// <see cref="UnityEngine.Timeline.TimelineAsset"/>, based on the <see cref="RefreshReason"/> provided. /// </para> /// <para> /// For better performance, it is recommended that you invoke this method once, after you modify the /// <see cref="UnityEngine.Timeline.TimelineAsset"/>. You should also combine reasons using the <c>|</c> operator. /// </para> /// </summary> /// <remarks> /// Note: This operation is not synchronous. It is performed during the next GUI loop. /// </remarks> /// <param name="reason">The reason why a refresh should be performed.</param> public static void Refresh(RefreshReason reason) { if (state == null) { return; } if ((reason & RefreshReason.ContentsAddedOrRemoved) != 0) { state.Refresh(); } else if ((reason & RefreshReason.ContentsModified) != 0) { state.rebuildGraph = true; } else if ((reason & RefreshReason.SceneNeedsUpdate) != 0) { state.Evaluate(); } window.Repaint(); }
public virtual T BeginRefresh(RefreshReason reason, CancelEventArgs e) { return(default(T)); }
public virtual void RefreshCompleted(T result, RefreshReason reason, AsyncCompletedEventArgs e) { }
internal static void RefreshTimelineEditor(RefreshReason reason = DEFAULT_REFRESH_REASON) { TimelineEditor.Refresh(reason); }
internal static void RefreshTimelineEditor(PlayableDirector director, RefreshReason refreshReason = DEFAULT_REFRESH_REASON) { ShowTimelineWindow(); Selection.activeObject = director; TimelineEditor.Refresh(refreshReason); }
public void RefreshCompleted(BranchDropDownViewModelRefreshArgs result, RefreshReason reason, AsyncCompletedEventArgs e) { this.Branches = result.Branches; this.SelectedBranch = result.SelectedBranch; }