-
Notifications
You must be signed in to change notification settings - Fork 10
/
Settings.h
129 lines (105 loc) · 5.1 KB
/
Settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#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();
}
};
}