/// <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(); }
/// <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(); }
private IconMarginActionsProvider(IconBarMargin margin) { this.margin = margin; App.CompositionContainer.ComposeParts(this); }
private IconMarginActionsProvider(IconBarMargin margin, DecompilerTextView textView) { this.margin = margin; this.textView = textView; }