コード例 #1
0
        private void OnInitDbTablesEditor(DbTablesEditorVM dbTablesEditorVm)
        {
            var databaseView = new DbTablesEditorView();

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

            TableSelector.Initialize(_vm.DbTableSelector);
            TableEditor.Initialize(_vm.DbTableEditor);
        }
コード例 #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);
        }