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());
		}
예제 #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());
        }
예제 #3
0
 public RemoveModuleStateVm(ControlCenterViewModel controlCenterVM)
 {
     this.controlCenterVM = controlCenterVM;
     RemoveStateCommand   = new RelayCommand(c => Remove());
 }
예제 #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);
		}
		public RemoveModuleStateVm(ControlCenterViewModel controlCenterVM)
		{
			this.controlCenterVM = controlCenterVM;
			RemoveStateCommand = new RelayCommand(c => Remove());
		}