Exemple #1
0
        public static void Paste(HostSurface hostSurface)
        {
            IMenuCommandService ims = hostSurface.GetService(typeof(IMenuCommandService)) as IMenuCommandService;

            if (ims != null)
            {
                ims.GlobalInvoke(StandardCommands.Paste);
            }
        }
Exemple #2
0
        public static void SelectAll(HostSurface hostSurface)
        {
            IMenuCommandService ims = hostSurface.GetService(typeof(IMenuCommandService)) as IMenuCommandService;

            ims.GlobalInvoke(StandardCommands.SelectAll);
        }