public Level2View() { InitializeComponent(); DataContext = _ViewModel = new Level2ViewModel(); addMovementCmnds(MovementCommandsCount); RoboFigureContainer.Children.Add(new RobotFigureView(new RobotFigureViewModel(PathForLevel.Level2))); }
public MovementCommandViewModel(Level2ViewModel parent) { _parent = parent; _parent.AddToCommandList(mc); ChangeDirective = new RelayCommand(changeDirective); }
internal MovementCommandL2View(Level2ViewModel dataContext) { InitializeComponent(); DataContext = new MovementCommandViewModel(dataContext); }
public MovementCommandViewModel() { _parent = new Level2ViewModel(); ChangeDirective = new RelayCommand(changeDirective); }