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());
		}
Exemplo n.º 2
0
        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);
 }
Exemplo n.º 4
0
 public SaveModuleStateVm(ModuleGrid grid, ControlCenterViewModel cc)
 {
     _grid            = grid;
     _controlCenter   = cc;
     SaveStateCommand = new RelayCommand(c => Save(), b => Name.Length > 0);
 }
		public SaveModuleStateVm(ModuleGrid grid, ControlCenterViewModel cc)
		{
			_grid = grid;
		    _controlCenter = cc;
			SaveStateCommand = new RelayCommand(c => Save(), b => Name.Length > 0);
		}
Exemplo n.º 6
0
 public ModuleGridManager()
 {
     ModuleGrid = new ModuleGrid(this);
 }