Esempio n. 1
0
 public void RemoveFastContextMenuItem(FastContextMenuItem fastContextMenuItem)
 {
     if (this._fastContextMenu.Items.Contains(fastContextMenuItem))
     {
         this._fastContextMenu.Items.Remove(fastContextMenuItem);
     }
 }
Esempio n. 2
0
        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);
        }