예제 #1
1
 public void UpdateFromInput(EditStageViewModel editStageViewModel)
 {
     World = Int32.Parse(editStageViewModel.InputWorld);
     Stage = Int32.Parse(editStageViewModel.InputStage);
     StageName = editStageViewModel.InputStageName;
     StageDescription = editStageViewModel.InputStageDescription;
 }
예제 #2
0
 private void SetProperties(EditStageViewModel inputViewModel)
 {
     this.World = System.Int32.Parse(inputViewModel.InputWorld);
     this.Stage = System.Int32.Parse(inputViewModel.InputStage);
     this.StageName = inputViewModel.InputStageName;
     this.StageDescription = inputViewModel.InputStageDescription;
 }
예제 #3
0
        /// <summary>
        /// EditViewModelからSatgeModelを生成
        /// </summary>
        /// <param name="editViewModel"></param>
        /// <param name="parent"></param>
        public StageModel(EditStageViewModel editViewModel, MainModel parent)
        {
            Initialize(parent);

            SetProperties(editViewModel);

            World = Int32.Parse(editViewModel.InputWorld);
            Stage = Int32.Parse(editViewModel.InputStage);
            StageName = editViewModel.InputStageName;
            StageDescription = editViewModel.InputStageDescription;
            CurrentMap = MapModels.FirstOrDefault();
        }
예제 #4
0
 private void EditStage(MainViewModel parameter)
 {
     var inputVewModel = new EditStageViewModel(_model, _model.Parent);
     Messenger.Raise(new TransitionMessage(inputVewModel, "TransitionStage"));
 }
예제 #5
0
 /// <summary>
 /// Stageの追加
 /// </summary>
 private void CreateStage()
 {
     var inputVewModel = new EditStageViewModel(_model.Parent);
     Messenger.Raise(new TransitionMessage(inputVewModel, "TransitionStage"));
 }
        private void CreateStage(MainViewModel parameter)
        {
            var inputVewModel = new EditStageViewModel(_model);

            Messenger.Raise(new TransitionMessage(inputVewModel, "TransitionStage"));

            if (_model.CurrentStage != null && _model.CurrentStage.MapModels.Count == 0)
            {
                CreateMapCommand.Execute();
            }
        }