示例#1
0
 static SystemCommands()
 {
     MinimizeWindowCommand = new SystemCommand(CanMinimize, Minimize);
     MaximizeWindowCommand = new SystemCommand(CanMaximize, Maximize);
     RestoreWindowCommand  = new SystemCommand(CanRestore, Restore);
     CloseWindowCommand    = new SystemCommand(CanClose, Close);
     ShowSystemMenuCommand = new SystemCommand(CanShowSystemMenu, ShowSystemMenu);
 }
示例#2
0
 static SystemCommands()
 {
     MinimizeWindowCommand = new SystemCommand(CanMinimize, Minimize);
     MaximizeWindowCommand = new SystemCommand(CanMaximize, Maximize);
     RestoreWindowCommand = new SystemCommand(CanRestore, Restore);
     CloseWindowCommand = new SystemCommand(CanClose, Close);
     ShowSystemMenuCommand = new SystemCommand(CanShowSystemMenu, ShowSystemMenu);
 }