private void CreateCommands() { if (!IsInDesignModeStatic) { CommandNames.Each(name => Set(new DelegateCommand <object>(x => ExecuteCommand(name, x), x => CanExecuteCommand(name, x)), name)); } }
private void CreateCommands() { CommandNames.Each(name => Set(name, new DelegateCommand <object>(x => ExecuteCommand(name, x), x => CanExecuteCommand(name, x)))); }