private void StageChanged(object sender, StageChangedEventArgs e)
        {
            if (e.Stage != null)
            {
                if (_history != null)
                {
                    _history.Updated -= UpdateActions;
                }

                _history = e.Stage.History;
                OnPropertyChanged("Items");

                _history.Updated += UpdateActions;
            }
        }
 private void StageChanged(object sender, StageChangedEventArgs e)
 {
     if (e.Stage != null)
         SetTileset(e.Stage.Tileset.Tileset);
     else
         SetTileset(null);
 }
        private void StageChanged(object sender, StageChangedEventArgs e)
        {
            _currentStage = e.Stage;

            OnPropertyChanged("HasStage");
        }
        private void AddStageToProject(TilesetDocument tileset)
        {
            var stage = _project.AddStage(Name);
            stage.ChangeTileset(tileset);
            _dataService.SaveProject(_project);

            var args = new StageChangedEventArgs(stage);
            ViewModelMediator.Current.GetEvent<StageChangedEventArgs>().Raise(this, args);
        }
 private void StageChanged(object sender, StageChangedEventArgs e)
 {
     _stage = e.Stage;
     if (_stage != null)
     {
         Name = _stage.Name;
         Track = (uint)_stage.MusicTrack;
     }
 }
Esempio n. 6
0
 private void StageChanged(object sender, StageChangedEventArgs e)
 {
     if (e.Stage != null)
         SetStage(e.Stage);
     else
         UnsetStage();
 }
Esempio n. 7
0
        private void StageSelected(object sender, StageChangedEventArgs e)
        {
            if (e.Stage != null)
                ribbonStage.IsSelected = true;

            this.editorPane.IsActive = true;
        }
        private void StageChanged(object sender, StageChangedEventArgs e)
        {
            _currentStage = e.Stage;

            if (_currentStage != null)
            {
                var player = _currentStage.Project.EntityByName("Player");
                if (player != null)
                {
                    _playerSprite = SpriteModel.ForEntity(player, _currentStage.Project);
                }
            }

            OnPropertyChanged("HasStage");
        }