public EditElementViewModel(ILogicElementEditorViewModel sourceViewModel) { this._sourceViewModel = sourceViewModel; this.EditableEditorViewModel = (ILogicElementEditorViewModel)this._sourceViewModel.Clone(); this.EditableEditorViewModel.Model = this._sourceViewModel.Model; this.OkCommand = new RelayCommand <Window>(this.OnOkCommand); this.CancelCommand = new RelayCommand <Window>(this.OnCloseCommand); }
public DragEditorElement(ILogicElementEditorViewModel item) { this.Item = item; }