public SceneEditorControl() { this.MonoGameService = ViewContainer.Resolve <IMonoGameService>(); this.SceneService = ViewContainer.Resolve <ISceneService>(); this.CenterCameraCommand = new RelayCommand(this.MonoGameService.CenterCamera); this.InitializeComponent(); }
public SelectionEditor(EditorGame editorGame) { this._editorGame = editorGame; this._componentService = ViewContainer.Resolve <IComponentService>(); this._componentService.SelectionChanged += this.ComponentService_SelectionChanged; this._translateGizmo = new TranslateGizmo(editorGame); }
public ImageAssetEditor() { this._undoService = ViewContainer.Resolve <IUndoService>(); this.AddSpriteCommand = new RelayCommand(this.AddSprite, () => this.Asset != null); this._removeSpriteCommand = new RelayCommand(this.RemoveSprite, () => this.Asset != null && this.SelectedSprite != null); this.InitializeComponent(); }
public AssetBrowser() { this._assetService = ViewContainer.Resolve <IAssetService>(); this.TextChangedCommand = new RelayCommand <string>(x => this._assetService.RenameAsset(this._assetService.SelectedAsset, x)); this.InitializeComponent(); this.Loaded += this.AssetBrowser_Loaded; }
public ComponentHierarchy() { this._dialogService = ViewContainer.Resolve <IDialogService>(); this._monoGameService = ViewContainer.Resolve <IMonoGameService>(); this._componentService = ViewContainer.Resolve <IComponentService>(); this._undoService = ViewContainer.Resolve <IUndoService>(); this._componentService.SelectionChanged += this.ComponentService_SelectionChanged; this._addComponentCommand = new RelayCommand(this.AddComponent, () => this.SelectedItem != null); this._removeComponentCommand = new RelayCommand(this.RemoveComponent, () => this.SelectedItem != null && this.SelectedItem is ComponentWrapper); this.InitializeComponent(); }
public SpriteAnimationAssetEditor() { this._dialogService = ViewContainer.Resolve <IDialogService>(); this._projectService = ViewContainer.Resolve <IProjectService>(); this._undoService = ViewContainer.Resolve <IUndoService>(); this._addStepCommand = new RelayCommand(this.AddStep, () => this.Asset != null); this._removeStepCommand = new RelayCommand(this.RemoveStep, () => this.Asset != null && this.SelectedStep != null); this._moveDownCommand = new RelayCommand(this.MoveDown, this.CanMoveDown); this._moveUpCommand = new RelayCommand(this.MoveUp, this.CanMoveUp); this.ClearSpriteCommand = new RelayCommand <SpriteAnimationStepWrapper>(this.ClearSprite); this.SelectSpriteCommand = new RelayCommand <SpriteAnimationStepWrapper>(this.SelectSprite); this.InitializeComponent(); }
public ComponentsView() { this.DataContext = ViewContainer.Resolve <ComponentsViewModel>(); InitializeComponent(); }
public RectangleColliderEditor() { this._sceneService = ViewContainer.Resolve <ISceneService>(); this._undoService = ViewContainer.Resolve <IUndoService>(); this.InitializeComponent(); }
public ColliderEditor() { this._busyService = ViewContainer.Resolve <IBusyService>(); this._valueEditorService = ViewContainer.Resolve <IValueEditorService>(); this.InitializeComponent(); }
internal EditorCameraWrapper(EditorGame editorGame) { this._editorGame = editorGame; this._sceneService = ViewContainer.Resolve <ISceneService>(); }
public EditableTreeViewItemControl() { this._dialogService = ViewContainer.Resolve <IDialogService>(); this._undoService = ViewContainer.Resolve <IUndoService>(); this.InitializeComponent(); }
public TranslateGizmo(EditorGame editorGame) : base(editorGame) { this._undoService = ViewContainer.Resolve <IUndoService>(); }
public AssetEditorControl() { this._assetService = ViewContainer.Resolve <IAssetService>(); this.InitializeComponent(); }