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(); }
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(); }