コード例 #1
0
ファイル: FdoSchemaView.cs プロジェクト: morkl/fdotoolbox
            public FdoSchemaViewTreePresenter(FdoSchemaView view, SchemaDesignContext context)
            {
                _view    = view;
                _context = context;
                _view.schemaTree.AfterSelect += new TreeViewEventHandler(OnAfterSelect);
                _view.schemaTree.MouseDown   += new MouseEventHandler(RightClickHack);

                _context.SchemaAdded   += new SchemaElementEventHandler <FeatureSchema>(OnSchemaAdded);
                _context.ClassAdded    += new SchemaElementEventHandler <ClassDefinition>(OnClassAdded);
                _context.PropertyAdded += new SchemaElementEventHandler <PropertyDefinition>(OnPropertyAdded);

                _context.ClassRemoved    += new SchemaElementEventHandler <ClassDefinition>(OnClassRemoved);
                _context.PropertyRemoved += new SchemaElementEventHandler <PropertyDefinition>(OnPropertyRemoved);

                InitContextMenus();
            }
コード例 #2
0
ファイル: FdoDataStoreCtrl.cs プロジェクト: morkl/fdotoolbox
        protected override void OnLoad(EventArgs e)
        {
            _context = new SchemaDesignContext(_conn);

            if (!_context.IsConnected)
            {
                this.Title = ResourceService.GetString("TITLE_DATA_STORE_STANDALONE");
            }

            schemaView.UpdateState         += new EventHandler(OnUpdateState);
            spatialContextView.UpdateState += new EventHandler(OnUpdateState);

            schemaView.Context         = _context;
            spatialContextView.Context = _context;

            EvaluateCommandStates();

            base.OnLoad(e);
        }
コード例 #3
0
 public ImportElementsDialog(FdoDataStoreConfiguration dataStore, SchemaDesignContext context)
     : this()
 {
     _dataStore = dataStore;
     _context   = context;
 }