コード例 #1
0
        public void Refresh(IBehaviorContext context, RefreshOptions options)
        {
            var collection = GetValue(context);

            Repopulate(context, collection, RefreshReason.Create(options.ExecuteRefreshDependencies));

            this.RefreshNext(context, options);
        }
コード例 #2
0
 public BranchDropDownViewModelRefreshArgs BeginRefresh(RefreshReason reason, CancelEventArgs e)
 {
     return(new BranchDropDownViewModelRefreshArgs
     {
         Branches = tfsBranchProvider.GetBranches(),
         SelectedBranch = tfsBranchProvider.GetCurrentBranch()
     });
 }
コード例 #3
0
        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;
        }
コード例 #4
0
        public void OnPageRefreshStarted(RefreshReason reason)
        {
            var viewModel = this.ViewModel as TeamExplorerAsyncViewModelBase <T>;

            if (viewModel == null)
            {
                return;
            }

            viewModel.IsBusy = true;
        }
コード例 #5
0
        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();
        }
コード例 #6
0
        public object BeginRefresh(RefreshReason reason, CancelEventArgs e)
        {
            var viewModel = this.ViewModel as TeamExplorerAsyncViewModelBase <T>;

            if (viewModel == null)
            {
                return(null);
            }

            return(viewModel.BeginRefresh(reason, e));
        }
コード例 #7
0
        public void OnPageRefreshCompleted(RefreshReason reason)
        {
            var viewModel = this.ViewModel as TeamExplorerAsyncPageViewModelBase <T>;

            if (viewModel == null)
            {
                return;
            }

            viewModel.IsBusy = false;
        }
コード例 #8
0
        public void Refresh(IBehaviorContext context, RefreshOptions options)
        {
            context.NotifyChange(
                ChangeArgs.PropertyChanged(
                    _property,
                    ValueStage.ValidatedValue,
                    RefreshReason.Create(options.ExecuteRefreshDependencies)
                    )
                );

            this.RefreshNext(context, options);
        }
コード例 #9
0
        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
            });
        }
コード例 #10
0
        /// <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();
        }
コード例 #11
0
 public virtual T BeginRefresh(RefreshReason reason, CancelEventArgs e)
 {
     return(default(T));
 }
コード例 #12
0
 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);
 }
コード例 #15
0
 public void RefreshCompleted(BranchDropDownViewModelRefreshArgs result, RefreshReason reason, AsyncCompletedEventArgs e)
 {
     this.Branches       = result.Branches;
     this.SelectedBranch = result.SelectedBranch;
 }