public MainViewModel() { RiseSectionData riseSectionData = new RiseSectionData(); EditorManager editorManager = new EditorManager(); LevelViewModel = new LevelViewModel(riseSectionData, editorManager); ToolbarViewModel = new ToolbarViewModel(riseSectionData, editorManager); LevelXmlViewModel = new LevelXmlViewModel(riseSectionData); }
public LevelViewModel(RiseSectionData riseSectionData, EditorManager editorManager) { mRiseSectionData = riseSectionData; mRiseSectionData.DataChanged += RiseSectionDataDataChanged; mEditorManager = editorManager; mEditorManager.PropertyChanged += EditorManagerPropertyChanged; UpdateFromModel(); }
public ToolbarViewModel(RiseSectionData riseSectionData, EditorManager editorManager) { mEditorManager = editorManager; mEditorManager.PropertyChanged += EditorManagerPropertyChanged; CreatePropertiesViewModels(riseSectionData); EditorViewModel = new EditorViewModel(riseSectionData, editorManager); PropertiesViewModel = new NoSelectionPropertiesViewModel(); }
public EditorModeViewModel(EditorManager editorManager) { mEditorManager = editorManager; EditorModes = Enum.GetValues(typeof(EditorMode)).Cast<EditorMode>().Select(em => new EditorModeData(em)).ToList(); foreach (var editorMode in EditorModes) { if (editorMode.EditorMode == mEditorManager.EditorMode) { editorMode.IsActive = true; } editorMode.PropertyChanged += EditorModePropertyChanged; } mIsEditorModesChanging = false; }
public PlatformFeaturesEditorViewModel(RiseSectionData riseSectionData, EditorManager editorManager) { }
public EditorViewModel(RiseSectionData riseSectionData, EditorManager editorManager) { RiseSectionPropertiesViewModel = new RiseSectionPropertiesViewModel(riseSectionData); EditorModeViewModel = new EditorModeViewModel(editorManager); }
public PlatformMovementEditorViewModel(RiseSectionData riseSectionData, EditorManager editorManager) { MovementTypes = Enum.GetValues(typeof(PlatformMovementType)).Cast<PlatformMovementType>(); }
public PlatformEditorViewModel(RiseSectionData riseSectionData, EditorManager editorManager) { PlatformMovementEditorViewModel = new PlatformMovementEditorViewModel(riseSectionData, editorManager); PlatformFeaturesEditorViewModel = new PlatformFeaturesEditorViewModel(riseSectionData, editorManager); }