Example #1
0
        public RubberStampContextMenu()
        {
            foreach (AnnRubberStampType rubberStampType in Enum.GetValues(typeof(AnnRubberStampType)))
            {
                this.MenuItems.Add(new RubberStampMenuItem(AutomationManagerHelper.GetRubberStampName(rubberStampType), rubberStampType));
            }

            foreach (MenuItem item in this.MenuItems)
            {
                if (string.Compare(item.Text, Tools.SeparatorMenuItem) != 0)
                {
                    item.Click += new EventHandler(menuItem_Click);
                }
            }
        }
Example #2
0
 public override string ToString()
 {
     return(AutomationManagerHelper.GetRubberStampName(RubberStampType));
 }