public void RemoveFastContextMenuItem(FastContextMenuItem fastContextMenuItem) { if (this._fastContextMenu.Items.Contains(fastContextMenuItem)) { this._fastContextMenu.Items.Remove(fastContextMenuItem); } }
public FastContextMenuItem AddFastContextMenuItem(string text, Action action) { FastContextMenuItem fastContextMenuItem = null; if (!string.IsNullOrWhiteSpace(text) && action != null) { fastContextMenuItem = new FastContextMenuItem(text, action); this._fastContextMenu.Items.Add(fastContextMenuItem); } return(fastContextMenuItem); }