示例#1
0
		public IconMargin(DebuggerTabItem debuggerView)
		{
			_debuggerView = debuggerView;

			_contextMenu.CommandBindings.Add(new CommandBinding(_enableBreakPointCommand, EnableBreakpointExecutedHandler));
			_contextMenu.CommandBindings.Add(new CommandBinding(_disableBreakPointCommand, DisableBreakpointExecutedHandler));
			_contextMenu.Items.Add(_enableBreakpointMenuItem = new MenuItem { Header = "_Enable", Command = _enableBreakPointCommand });
			_contextMenu.Items.Add(_disableBreakpointMenuItem = new MenuItem { Header = "_Disable", Command = _disableBreakPointCommand });
		}
示例#2
0
        public IconMargin(DebuggerTabItem debuggerView)
        {
            _debuggerView = debuggerView;

            _contextMenu.CommandBindings.Add(new CommandBinding(_enableBreakPointCommand, EnableBreakpointExecutedHandler));
            _contextMenu.CommandBindings.Add(new CommandBinding(_disableBreakPointCommand, DisableBreakpointExecutedHandler));
            _contextMenu.Items.Add(_enableBreakpointMenuItem = new MenuItem {
                Header = "_Enable", Command = _enableBreakPointCommand
            });
            _contextMenu.Items.Add(_disableBreakpointMenuItem = new MenuItem {
                Header = "_Disable", Command = _disableBreakPointCommand
            });
        }