private void RenderMenuScript() { ClientPopupMenu menu = new ClientPopupMenu("mMain", "createMenu"); RM rm = new RM(ResourceFile.UI); menu.AddMenuItem("mAdd", rm["Menu_Add"], "addMenu", ResourceHelper.GetImageUrl(this.Page, "add.png")); menu.AddMenuItem("mEdit", rm["Menu_Edit"], "editMenu", ResourceHelper.GetImageUrl(this.Page, "edit.png")); menu.AddMenuSeparator("mSep1"); menu.AddMenuItem("mDelete", rm["Menu_Delete"], "deleteMenu", ResourceHelper.GetImageUrl(this.Page, "delete.small.png")); menu.AddMenuItem("mRefresh", rm["Menu_Refresh"], "refreshSelectedNode", ResourceHelper.GetImageUrl(this.Page, "refresh.png")); menu.RenderScript(Page); }
private void RegeditMenuScript() { RM rm = new RM(ResourceFile.UI); ClientPopupMenu menu = new ClientPopupMenu("mMain", "createMenu"); menu.AddMenuItem("mView", rm["Menu_View"], "viewMenu", ResourceHelper.GetImageUrl(this.Page, "view.small.png")); menu.AddMenuItem("mAdd", rm["Menu_Add"], "addMenu", ResourceHelper.GetImageUrl(this.Page, "add.png")); menu.AddMenuItem("mEdit", rm["Menu_Edit"], "editMenu", ResourceHelper.GetImageUrl(this.Page, "edit.png")); menu.AddMenuSeparator("mSep1"); //menu.AddMenuItem("mCopy", rm["Menu_Copy"], "copyMenu", ResourceHelper.GetImageUrl(this.Page, "copy.small.png")); menu.AddMenuItem("mCut", rm["Menu_Cut"], "cutMenu", ResourceHelper.GetImageUrl(this.Page, "cut.small.png")); menu.AddMenuItem("mPaste", rm["Menu_Paste"], "pasteMenu", ResourceHelper.GetImageUrl(this.Page, "paste.small.png")); menu.AddMenuItem("mDelete", rm["Menu_Delete"], "deleteMenu", ResourceHelper.GetImageUrl(this.Page, "delete.small.png")); menu.AddMenuSeparator("mSep2"); menu.AddMenuItem("mRefresh", rm["Menu_Refresh"], "refreshSelectedNode", ResourceHelper.GetImageUrl(this.Page, "refresh.png")); menu.RenderScript(Page); }