コード例 #1
0
ファイル: Commands.cs プロジェクト: ibratoev/MEF.NET35
        public static void Paste(HostSurface hostSurface)
        {
            IMenuCommandService ims = hostSurface.GetService(typeof(IMenuCommandService)) as IMenuCommandService;
	    if(ims!=null)
	            ims.GlobalInvoke(StandardCommands.Paste);
        }
コード例 #2
0
ファイル: Commands.cs プロジェクト: JackFong/FreeRadical
 public static void SelectAll(HostSurface hostSurface)
 {
     IMenuCommandService ims = hostSurface.GetService(typeof(IMenuCommandService)) as IMenuCommandService;
     ims.GlobalInvoke(StandardCommands.SelectAll);
 }