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(); }
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); }
public ImportElementsDialog(FdoDataStoreConfiguration dataStore, SchemaDesignContext context) : this() { _dataStore = dataStore; _context = context; }