Beispiel #1
0
        private void OnInitDbTablesEditor(DbTablesEditorVM dbTablesEditorVm)
        {
            var databaseView = new DbTablesEditorView();

            databaseView.Initialize(dbTablesEditorVm);
            databaseView.Show(MainForm.EditorView, DockState.DockLeft);
        }
Beispiel #2
0
        public void Initialize(DbTablesEditorVM vm)
        {
            _vm = vm;

            TableSelector.Initialize(_vm.DbTableSelector);
            TableEditor.Initialize(_vm.DbTableEditor);
        }
Beispiel #3
0
        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);
        }