public static void Attach() { conMenuExt = new acw.ContextMenuExtension(); acw.MenuItem mi = new acw.MenuItem("Total Length"); mi.Click += new EventHandler(OnTotalLength); conMenuExt.MenuItems.Add(mi); RXClass rxc = Entity.GetClass(typeof(Entity)); AcAp.AddObjectContextMenuExtension(rxc, conMenuExt); }
public static void Attach() { mDigitalMenu = new AdeskWin.ContextMenuExtension(); mDigitalMenu.Title = "YCRO"; AdeskWin.MenuItem digital_mi = new AdeskWin.MenuItem("电子签名"); digital_mi.Click += new EventHandler(ShowDigital); AdeskWin.MenuItem frame_mi = new AdeskWin.MenuItem("电子图框"); frame_mi.Click += new EventHandler(ShowFrame); mDigitalMenu.MenuItems.Add(digital_mi); mDigitalMenu.MenuItems.Add(frame_mi); AdeskAppSvr.Application.AddDefaultContextMenuExtension(mDigitalMenu); }
public static void Attach() { mDigitalMenu = new AdeskWin.ContextMenuExtension(); mDigitalMenu.Title = "YCRO"; AdeskWin.MenuItem digital_mi = new AdeskWin.MenuItem("����ǩ��"); digital_mi.Click += new EventHandler(ShowDigital); AdeskWin.MenuItem frame_mi = new AdeskWin.MenuItem("����ͼ��"); frame_mi.Click += new EventHandler(ShowFrame); mDigitalMenu.MenuItems.Add(digital_mi); mDigitalMenu.MenuItems.Add(frame_mi); AdeskAppSvr.Application.AddDefaultContextMenuExtension(mDigitalMenu); }