public void UpdateFromInput(EditStageViewModel editStageViewModel) { World = Int32.Parse(editStageViewModel.InputWorld); Stage = Int32.Parse(editStageViewModel.InputStage); StageName = editStageViewModel.InputStageName; StageDescription = editStageViewModel.InputStageDescription; }
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; }
/// <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(); }
private void EditStage(MainViewModel parameter) { var inputVewModel = new EditStageViewModel(_model, _model.Parent); Messenger.Raise(new TransitionMessage(inputVewModel, "TransitionStage")); }
/// <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(); } }