Exemplo n.º 1
0
        private void OnInitDbTablesEditor(DbTablesEditorVM dbTablesEditorVm)
        {
            var databaseView = new DbTablesEditorView();

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

            TableSelector.Initialize(_vm.DbTableSelector);
            TableEditor.Initialize(_vm.DbTableEditor);
        }
Exemplo n.º 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);
        }