📄 settings.h
字号:
#pragma once
#using <System.dll>
#using <System.Data.dll>
#using <System.Xml.dll>
#using <mscorlib.dll>
//
// This source code was auto-generated by xsd, Version=1.1.4322.2032.
//
namespace VNAR3 {
using namespace System;
using namespace System::Data;
using namespace System::Xml;
using namespace System::Runtime::Serialization;
using namespace System;
public __gc class Settings;
[Serializable,
System::ComponentModel::DesignerCategoryAttribute(S"code"),
System::Diagnostics::DebuggerStepThrough,
System::ComponentModel::ToolboxItem(true)]
public __gc class Settings : public System::Data::DataSet {
public: Settings();
protected: Settings(System::Runtime::Serialization::SerializationInfo * info, System::Runtime::Serialization::StreamingContext context);
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::Void SchemaChanged(System::Object * sender, System::ComponentModel::CollectionChangeEventArgs * e);
};
inline Settings::Settings() {
this->InitClass();
System::ComponentModel::CollectionChangeEventHandler * schemaChangedHandler = new System::ComponentModel::CollectionChangeEventHandler(this, SchemaChanged);
this->Tables->CollectionChanged += schemaChangedHandler;
this->Relations->CollectionChanged += schemaChangedHandler;
}
inline Settings::Settings(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)));
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 System::Data::DataSet * Settings::Clone() {
VNAR3::Settings * cln = (__try_cast<VNAR3::Settings * >(__super::Clone()));
cln->InitVars();
return cln;
};
inline System::Boolean Settings::ShouldSerializeTables() {
return false;
};
inline System::Boolean Settings::ShouldSerializeRelations() {
return false;
};
inline System::Void Settings::ReadXmlSerializable(System::Xml::XmlReader * reader) {
this->Reset();
System::Data::DataSet * ds = new System::Data::DataSet();
ds->ReadXml(reader);
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 * Settings::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 Settings::InitVars() {
};
inline System::Void Settings::InitClass() {
this->DataSetName = S"Settings";
this->Prefix = S"";
this->Namespace = S"http://tempuri.org/Settings.xsd";
this->Locale = new System::Globalization::CultureInfo(S"en-US");
this->CaseSensitive = false;
this->EnforceConstraints = true;
};
inline System::Void Settings::SchemaChanged(System::Object * sender, System::ComponentModel::CollectionChangeEventArgs * e) {
if ((e->Action == System::ComponentModel::CollectionChangeAction::Remove)) {
this->InitVars();
}
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -