Пример #1
0
        /// <summary>
        /// When visualization is complete, the view requests it's visuals. For Full
        /// screen watch, this will be all renderables. For a Watch 3D node, this will
        /// be the subset of the renderables associated with the node.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void VisualizationManagerRenderComplete(object sender, RenderCompletionEventArgs e)
        {
            Dispatcher.Invoke(new Action(delegate
            {
                var vm = (IWatchViewModel)DataContext;

                if (vm.GetBranchVisualizationCommand.CanExecute(e.TaskId))
                {
                    vm.GetBranchVisualizationCommand.Execute(e.TaskId);
                }
            }));
        }
Пример #2
0
        /// <summary>
        /// When visualization is complete, the view requests it's visuals. For Full
        /// screen watch, this will be all renderables. For a Watch 3D node, this will
        /// be the subset of the renderables associated with the node.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void VisualizationManagerRenderComplete(object sender, RenderCompletionEventArgs e)
        {
            var executeCommand = new Action(delegate
            {
                var vm = (IWatchViewModel)DataContext;
                if (vm.GetBranchVisualizationCommand.CanExecute(e.TaskId))
                {
                    vm.GetBranchVisualizationCommand.Execute(e.TaskId);
                }
            });

            if (CheckAccess())
            {
                executeCommand();
            }
            else
            {
                Dispatcher.BeginInvoke(executeCommand);
            }
        }
Пример #3
0
        /// <summary>
        /// When visualization is complete, the view requests it's visuals. For Full
        /// screen watch, this will be all renderables. For a Watch 3D node, this will
        /// be the subset of the renderables associated with the node.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void VisualizationManagerRenderComplete(object sender, RenderCompletionEventArgs e)
        {
            Dispatcher.Invoke(new Action(delegate
            {
                var vm = (IWatchViewModel) DataContext;

                if (vm.GetBranchVisualizationCommand.CanExecute(e.TaskId))
                {
                    vm.GetBranchVisualizationCommand.Execute(e.TaskId);
                }
            }));
        }