コード例 #1
0
 private void CreateCommands()
 {
     if (!IsInDesignModeStatic)
     {
         CommandNames.Each(name => Set(new DelegateCommand <object>(x => ExecuteCommand(name, x), x => CanExecuteCommand(name, x)), name));
     }
 }
コード例 #2
0
 private void CreateCommands()
 {
     CommandNames.Each(name => Set(name, new DelegateCommand <object>(x => ExecuteCommand(name, x), x => CanExecuteCommand(name, x))));
 }