private void OnInitDbTablesEditor(DbTablesEditorVM dbTablesEditorVm) { var databaseView = new DbTablesEditorView(); databaseView.Initialize(dbTablesEditorVm); databaseView.Show(MainForm.EditorView, DockState.DockLeft); }
public void Initialize(DbTablesEditorVM vm) { _vm = vm; TableSelector.Initialize(_vm.DbTableSelector); TableEditor.Initialize(_vm.DbTableEditor); }
public void Initialize(DbTablesEditorVM vm) { DbTablesEditorCtrl.Initialize(vm); vm.CloseAction = () => this.InvokeIfRequired(() => base.Close()); this.DataBindings.Add(nameof(this.IsHidden), vm, nameof(vm.IsHidden), false, DataSourceUpdateMode.OnPropertyChanged); }