Ejemplo n.º 1
0
        public override void Initialize()
        {
            base.Initialize();
            KeyImageClipboard.OnViewerOpened(base.Context.Viewer);

            UpdateEnabled();

            if (WorkItemActivityMonitor.IsSupported)
            {
                _workItemActivityMonitor = WorkItemActivityMonitor.Create();
                _workItemActivityMonitor.IsConnectedChanged += OnIsConnectedChanged;
            }

            if (!KeyImageClipboard.HasViewPlugin)
            {
                foreach (var a in Actions)
                {
                    // TODO (CR Phoenix5 - High): use the ID, which doesn't change; this will change with language.
                    if (a.Path.LocalizedPath == "global-toolbars/ToolbarStandard/Show Key Images")
                    {
                        var buttonAction = a as ButtonAction;
                        if (buttonAction != null)
                        {
                            buttonAction.Visible = false;
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
        public override void Initialize()
        {
            base.Initialize();
            KeyImageClipboard.OnViewerOpened(base.Context.Viewer);

            UpdateEnabled();

            _workItemActivityMonitor = WorkItemActivityMonitor.Create();
            _workItemActivityMonitor.IsConnectedChanged += OnIsConnectedChanged;
        }
Ejemplo n.º 3
0
        public override void Initialize()
        {
            base.Initialize();
            KeyImageClipboard.OnViewerOpened(Context.Viewer);

            //Enablement conditions don't change.
            UpdateEnabled();

            if (!KeyImageClipboardComponent.HasViewPlugin)
            {
                foreach (var buttonAction in Actions.Where(a => a.ActionID == "show").OfType <ClickAction>())
                {
                    buttonAction.Visible = false;
                }
            }
        }
Ejemplo n.º 4
0
        public override void Initialize()
        {
            base.Initialize();
            KeyImageClipboard.OnViewerOpened(Context.Viewer);

            UpdateEnabled();

            if (WorkItemActivityMonitor.IsSupported)
            {
                _workItemActivityMonitor = WorkItemActivityMonitor.Create();
                _workItemActivityMonitor.IsConnectedChanged += OnIsConnectedChanged;
            }

            if (!KeyImageClipboardComponent.HasViewPlugin)
            {
                foreach (var buttonAction in Actions.Where(a => a.ActionID == "show").OfType <ClickAction>())
                {
                    buttonAction.Visible = false;
                }
            }
        }