public void Annuler() { MenuCommandService = new Host.MenuCommandServiceImpl(_hostSurfaceManager); System.ComponentModel.Design.IMenuCommandService ims = HostC.HostSurface.GetService(typeof(System.ComponentModel.Design.IMenuCommandService)) as System.ComponentModel.Design.IMenuCommandService; var a = System.ComponentModel.Design.StandardCommands.Undo; ims.GlobalInvoke(a); }
public void CentrerVerticalement() { MenuCommandService = new Host.MenuCommandServiceImpl(_hostSurfaceManager); System.ComponentModel.Design.IMenuCommandService ims = HostC.HostSurface.GetService(typeof(System.ComponentModel.Design.IMenuCommandService)) as System.ComponentModel.Design.IMenuCommandService; var a = System.ComponentModel.Design.StandardCommands.CenterVertically; ims.GlobalInvoke(a); MenuCommandService.GlobalInvoke(a); }