コード例 #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
ファイル: FdoSchemaView.cs プロジェクト: stophun/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();
            }