private void RefreshTool() { var tool = new CustomizeViewerActionModelTool(); var actions = tool.Actions; _mainMenu = actions.Select(a => a.ActionID == CustomizeViewerActionModelTool._mainMenuCustomizeId).First(); _contextMenu = actions.Select(a => a.ActionID == CustomizeViewerActionModelTool._contextMenuCustomizeId).First(); }
private void RefreshTool() { var tool = new CustomizeViewerActionModelTool(); var actions = tool.Actions; _mainMenu = actions.Select(a => a.ActionID.EndsWith(CustomizeViewerActionModelTool._mainMenuCustomizeId)).First(); _contextMenu = actions.Select(a => a.ActionID.EndsWith(CustomizeViewerActionModelTool._contextMenuCustomizeId)).First(); }