⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dataset1.h

📁 Visual_C++.NET实用编程百例
💻 H
📖 第 1 页 / 共 2 页
字号:
#pragma once 
#using <System.dll>
#using <System.Data.dll>
#using <System.Xml.dll>
#using <mscorlib.dll>

// 
// 此源代码由 xsd, Version=1.1.4322.573 自动生成。
// 
namespace ADONET {
    using namespace System;
    using namespace System::Data;
    using namespace System::Xml;
    using namespace System::Runtime::Serialization;
    
    using namespace System;
    public __gc class DataSet1;
    
    
    [Serializable, 
    System::ComponentModel::DesignerCategoryAttribute(S"code"), 
    System::Diagnostics::DebuggerStepThrough, 
    System::ComponentModel::ToolboxItem(true)]
    public __gc class DataSet1 : public System::Data::DataSet {
        public : __gc class gradeDataTable;
        public : __gc class gradeRow;
        public : __gc class gradeRowChangeEvent;
        
        private: ADONET::DataSet1::gradeDataTable *  tablegrade;
        
        public: DataSet1();
        protected: DataSet1(System::Runtime::Serialization::SerializationInfo *  info, System::Runtime::Serialization::StreamingContext context);
        public: [property: System::ComponentModel::Browsable(false), 
        property: System::ComponentModel::DesignerSerializationVisibilityAttribute(System::ComponentModel::DesignerSerializationVisibility::Content)]
         __property ADONET::DataSet1::gradeDataTable *  get_grade();
        
        public: virtual System::Data::DataSet *  Clone();
        
        protected: virtual System::Boolean ShouldSerializeTables();
        
        protected: virtual System::Boolean ShouldSerializeRelations();
        
        protected: virtual System::Void ReadXmlSerializable(System::Xml::XmlReader *  reader);
        
        protected: virtual System::Xml::Schema::XmlSchema *  GetSchemaSerializable();
        
        public private: System::Void InitVars();
        
        private: System::Void InitClass();
        
        private: System::Boolean ShouldSerializegrade();
        
        private: System::Void SchemaChanged(System::Object *  sender, System::ComponentModel::CollectionChangeEventArgs *  e);
        
        public: __delegate System::Void gradeRowChangeEventHandler(System::Object *  sender, ADONET::DataSet1::gradeRowChangeEvent *  e);
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class gradeDataTable : public System::Data::DataTable, public System::Collections::IEnumerable {
            
            private: System::Data::DataColumn *  columnName;
            
            private: System::Data::DataColumn *  columnMath;
            
            private: System::Data::DataColumn *  columnLiterary;
            
            private: System::Data::DataColumn *  columnTotal;
            
            public private: gradeDataTable();
            public private: gradeDataTable(System::Data::DataTable *  table);
            public: [property: System::ComponentModel::Browsable(false)]
             __property System::Int32 get_Count();
            
            public private:  __property System::Data::DataColumn *  get_NameColumn();
            
            public private:  __property System::Data::DataColumn *  get_MathColumn();
            
            public private:  __property System::Data::DataColumn *  get_LiteraryColumn();
            
            public private:  __property System::Data::DataColumn *  get_TotalColumn();
            
            public:  __property ADONET::DataSet1::gradeRow *  get_Item(System::Int32 index);
            
            public: __event ADONET::DataSet1::gradeRowChangeEventHandler *  gradeRowChanged;
            
            public: __event ADONET::DataSet1::gradeRowChangeEventHandler *  gradeRowChanging;
            
            public: __event ADONET::DataSet1::gradeRowChangeEventHandler *  gradeRowDeleted;
            
            public: __event ADONET::DataSet1::gradeRowChangeEventHandler *  gradeRowDeleting;
            
            public: System::Void AddgradeRow(ADONET::DataSet1::gradeRow *  row);
            
            public: ADONET::DataSet1::gradeRow *  AddgradeRow(System::String *  Name, System::Single Math, System::Single Literary, System::Single Total);
            
            public: System::Collections::IEnumerator *  GetEnumerator();
            
            public: virtual System::Data::DataTable *  Clone();
            
            protected: virtual System::Data::DataTable *  CreateInstance();
            
            public private: System::Void InitVars();
            
            private: System::Void InitClass();
            
            public: ADONET::DataSet1::gradeRow *  NewgradeRow();
            
            protected: virtual System::Data::DataRow *  NewRowFromBuilder(System::Data::DataRowBuilder *  builder);
            
            protected: virtual System::Type *  GetRowType();
            
            protected: virtual System::Void OnRowChanged(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowChanging(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleted(System::Data::DataRowChangeEventArgs *  e);
            
            protected: virtual System::Void OnRowDeleting(System::Data::DataRowChangeEventArgs *  e);
            
            public: System::Void RemovegradeRow(ADONET::DataSet1::gradeRow *  row);
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class gradeRow : public System::Data::DataRow {
            
            private: ADONET::DataSet1::gradeDataTable *  tablegrade;
            
            public private: gradeRow(System::Data::DataRowBuilder *  rb);
            public:  __property System::String *  get_Name();
            public:  __property  void set_Name(System::String *  value);
            
            public:  __property System::Single get_Math();
            public:  __property  void set_Math(System::Single value);
            
            public:  __property System::Single get_Literary();
            public:  __property  void set_Literary(System::Single value);
            
            public:  __property System::Single get_Total();
            public:  __property  void set_Total(System::Single value);
            
            public: System::Boolean IsNameNull();
            
            public: System::Void SetNameNull();
            
            public: System::Boolean IsMathNull();
            
            public: System::Void SetMathNull();
            
            public: System::Boolean IsLiteraryNull();
            
            public: System::Void SetLiteraryNull();
            
            public: System::Boolean IsTotalNull();
            
            public: System::Void SetTotalNull();
        };
        
        public : [System::Diagnostics::DebuggerStepThrough]
        __gc class gradeRowChangeEvent : public System::EventArgs {
            
            private: ADONET::DataSet1::gradeRow *  eventRow;
            
            private: System::Data::DataRowAction eventAction;
            
            public: gradeRowChangeEvent(ADONET::DataSet1::gradeRow *  row, System::Data::DataRowAction action);
            public:  __property ADONET::DataSet1::gradeRow *  get_Row();
            
            public:  __property System::Data::DataRowAction get_Action();
        };
        };
    
    
    
    inline DataSet1::DataSet1() {
        this->InitClass();
        System::ComponentModel::CollectionChangeEventHandler *  schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
        this->Tables->CollectionChanged += schemaChangedHandler;
        this->Relations->CollectionChanged += schemaChangedHandler;
    }
    
    inline DataSet1::DataSet1(System::Runtime::Serialization::SerializationInfo *  info, System::Runtime::Serialization::StreamingContext context) {
        System::String *  strSchema = (__try_cast<System::String *  >(info->GetValue(S"XmlSchema", __typeof(System::String))));
        if ((strSchema != 0)) {
            System::Data::DataSet *  ds = new System::Data::DataSet();
            ds->ReadXmlSchema(new System::Xml::XmlTextReader(new System::IO::StringReader(strSchema)));
            if ((ds->Tables->Item[S"grade"] != 0)) {
                this->Tables->Add(new ADONET::DataSet1::gradeDataTable(ds->Tables->Item[S"grade"]));
            }
            this->DataSetName = ds->DataSetName;
            this->Prefix = ds->Prefix;
            this->Namespace = ds->Namespace;
            this->Locale = ds->Locale;
            this->CaseSensitive = ds->CaseSensitive;
            this->EnforceConstraints = ds->EnforceConstraints;
            this->Merge(ds, false, System::Data::MissingSchemaAction::Add);
            this->InitVars();
        }
        else {
            this->InitClass();
        }
        this->GetSerializationData(info, context);
        System::ComponentModel::CollectionChangeEventHandler *  schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
        this->Tables->CollectionChanged += schemaChangedHandler;
        this->Relations->CollectionChanged += schemaChangedHandler;
    }
    
    inline ADONET::DataSet1::gradeDataTable *  DataSet1::get_grade() {
        return this->tablegrade;
    }
    
    inline System::Data::DataSet *  DataSet1::Clone() {
        ADONET::DataSet1 *  cln = (__try_cast<ADONET::DataSet1 *  >(__super::Clone()));
        cln->InitVars();
        return cln;
    };
    
    inline System::Boolean DataSet1::ShouldSerializeTables() {
        return false;
    };
    
    inline System::Boolean DataSet1::ShouldSerializeRelations() {
        return false;
    };
    
    inline System::Void DataSet1::ReadXmlSerializable(System::Xml::XmlReader *  reader) {
        this->Reset();
        System::Data::DataSet *  ds = new System::Data::DataSet();
        ds->ReadXml(reader);
        if ((ds->Tables->Item[S"grade"] != 0)) {
            this->Tables->Add(new ADONET::DataSet1::gradeDataTable(ds->Tables->Item[S"grade"]));
        }
        this->DataSetName = ds->DataSetName;
        this->Prefix = ds->Prefix;
        this->Namespace = ds->Namespace;
        this->Locale = ds->Locale;
        this->CaseSensitive = ds->CaseSensitive;
        this->EnforceConstraints = ds->EnforceConstraints;
        this->Merge(ds, false, System::Data::MissingSchemaAction::Add);
        this->InitVars();
    };
    
    inline System::Xml::Schema::XmlSchema *  DataSet1::GetSchemaSerializable() {
        System::IO::MemoryStream *  stream = new System::IO::MemoryStream();
        this->WriteXmlSchema(new System::Xml::XmlTextWriter(stream, 0));
        stream->Position = 0;
        return System::Xml::Schema::XmlSchema::Read(new System::Xml::XmlTextReader(stream), 0);
    };
    
    inline System::Void DataSet1::InitVars() {
        this->tablegrade = (__try_cast<ADONET::DataSet1::gradeDataTable *  >(this->Tables->Item[S"grade"]));
        if ((this->tablegrade != 0)) {
            this->tablegrade->InitVars();
        }
    };
    
    inline System::Void DataSet1::InitClass() {
        this->DataSetName = S"DataSet1";
        this->Prefix = S"";
        this->Namespace = S"http://www.tempuri.org/DataSet1.xsd";
        this->Locale = new System::Globalization::CultureInfo(S"zh-CN");
        this->CaseSensitive = false;
        this->EnforceConstraints = true;
        this->tablegrade = new ADONET::DataSet1::gradeDataTable();
        this->Tables->Add(this->tablegrade);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -