コード例 #1
0
        /// <summary>
        /// Enables extensible context menu support for the specified icon margin.
        /// </summary>
        public static void Add(IconBarMargin margin, DecompilerTextView textView)
        {
            var provider = new IconMarginActionsProvider(margin, textView);

            margin.MouseUp    += provider.HandleMouseEvent;
            margin.ContextMenu = new ContextMenu();
        }
コード例 #2
0
		/// <summary>
		/// Enables extensible context menu support for the specified icon margin.
		/// </summary>
		public static void Add(IconBarMargin margin)
		{
			var provider = new IconMarginActionsProvider(margin);
			margin.MouseUp += provider.HandleMouseEvent;
			margin.ContextMenu = new ContextMenu();
		}
コード例 #3
0
		private IconMarginActionsProvider(IconBarMargin margin)
		{
			this.margin = margin;
			App.CompositionContainer.ComposeParts(this);
		}
コード例 #4
0
 private IconMarginActionsProvider(IconBarMargin margin, DecompilerTextView textView)
 {
     this.margin   = margin;
     this.textView = textView;
 }
コード例 #5
0
 private IconMarginActionsProvider(IconBarMargin margin)
 {
     this.margin = margin;
     App.CompositionContainer.ComposeParts(this);
 }