Exemple #1
0
        internal void AddTypedRowEvents(CodeTypeDeclaration dataTableClass, string tableName)
        {
            DesignTable table = this.codeGenerator.TableHandler.Tables[tableName];
            string      generatorRowClassName     = table.GeneratorRowClassName;
            string      generatorRowEvHandlerName = table.GeneratorRowEvHandlerName;

            dataTableClass.Members.Add(CodeGenHelper.EventDecl(generatorRowEvHandlerName, table.GeneratorRowChangingName));
            dataTableClass.Members.Add(CodeGenHelper.EventDecl(generatorRowEvHandlerName, table.GeneratorRowChangedName));
            dataTableClass.Members.Add(CodeGenHelper.EventDecl(generatorRowEvHandlerName, table.GeneratorRowDeletingName));
            dataTableClass.Members.Add(CodeGenHelper.EventDecl(generatorRowEvHandlerName, table.GeneratorRowDeletedName));
        }