public ModuleGridManager(ControlCenterViewModel controlCenter) { ModuleGrid = new ModuleGrid(this); ControlCenter = controlCenter; LoadLeftCommand = new RelayCommand(c => LoadModule(ModulePosition.Left), b => _selectedModule != null); LoadRightCommand = new RelayCommand(c => LoadModule(ModulePosition.Right), b => _selectedModule != null); LoadTopCommand = new RelayCommand(c => LoadModule(ModulePosition.Top), b => _selectedModule != null); LoadMiddleCommand = new RelayCommand(c => LoadModule(ModulePosition.Middle), b => _selectedModule != null); LoadBottomCommand = new RelayCommand(c => LoadModule(ModulePosition.Bottom), b => _selectedModule != null); ResetGridProportionsCommand = new RelayCommand(c => ResetGridProportions()); }
public ModuleGridManager() { ModuleGrid = new ModuleGrid(this); }
public SaveModuleStateVm(ModuleGrid grid, ControlCenterViewModel cc) { _grid = grid; _controlCenter = cc; SaveStateCommand = new RelayCommand(c => Save(), b => Name.Length > 0); }