Esempio n. 1
0
 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);
 }
Esempio n. 3
0
 internal MovementCommandL2View(Level2ViewModel dataContext)
 {
     InitializeComponent();
     DataContext = new MovementCommandViewModel(dataContext);
 }
 public MovementCommandViewModel()
 {
     _parent         = new Level2ViewModel();
     ChangeDirective = new RelayCommand(changeDirective);
 }