//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.42
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#pragma warning disable 1591
namespace app5 {
using System;
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[Serializable()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.ComponentModel.ToolboxItem(true)]
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
[System.Xml.Serialization.XmlRootAttribute("DataSet1")]
[System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
public partial class DataSet1 : System.Data.DataSet {
private CustomerDataTable tableCustomer;
private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public DataSet1() {
this.BeginInit();
this.InitClass();
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
base.Relations.CollectionChanged += schemaChangedHandler;
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected DataSet1(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context, false) {
if ((this.IsBinarySerialized(info, context) == true)) {
this.InitVars(false);
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
this.Tables.CollectionChanged += schemaChangedHandler1;
this.Relations.CollectionChanged += schemaChangedHandler1;
return;
}
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) {
System.Data.DataSet ds = new System.Data.DataSet();
ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
if ((ds.Tables["Customer"] != null)) {
base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
}
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.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
}
this.GetSerializationData(info, context);
System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
base.Tables.CollectionChanged += schemaChangedHandler;
this.Relations.CollectionChanged += schemaChangedHandler;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]
public CustomerDataTable Customer {
get {
return this.tableCustomer;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.BrowsableAttribute(true)]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)]
public override System.Data.SchemaSerializationMode SchemaSerializationMode {
get {
return this._schemaSerializationMode;
}
set {
this._schemaSerializationMode = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new System.Data.DataTableCollection Tables {
get {
return base.Tables;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public new System.Data.DataRelationCollection Relations {
get {
return base.Relations;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void InitializeDerivedDataSet() {
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataSet Clone() {
DataSet1 cln = ((DataSet1)(base.Clone()));
cln.InitVars();
cln.SchemaSerializationMode = this.SchemaSerializationMode;
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override bool ShouldSerializeTables() {
return false;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override bool ShouldSerializeRelations() {
return false;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void ReadXmlSerializable(System.Xml.XmlReader reader) {
if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) {
this.Reset();
System.Data.DataSet ds = new System.Data.DataSet();
ds.ReadXml(reader);
if ((ds.Tables["Customer"] != null)) {
base.Tables.Add(new CustomerDataTable(ds.Tables["Customer"]));
}
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.ReadXml(reader);
this.InitVars();
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
System.IO.MemoryStream stream = new System.IO.MemoryStream();
this.WriteXmlSchema(new System.Xml.XmlTextWriter(stream, null));
stream.Position = 0;
return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.InitVars(true);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars(bool initTable) {
this.tableCustomer = ((CustomerDataTable)(base.Tables["Customer"]));
if ((initTable == true)) {
if ((this.tableCustomer != null)) {
this.tableCustomer.InitVars();
}
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.DataSetName = "DataSet1";
this.Prefix = "";
this.Namespace = "http://tempuri.org/DataSet1.xsd";
this.EnforceConstraints = true;
this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
this.tableCustomer = new CustomerDataTable();
base.Tables.Add(this.tableCustomer);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private bool ShouldSerializeCustomer() {
return false;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) {
DataSet1 ds = new DataSet1();
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
any.Namespace = ds.Namespace;
sequence.Items.Add(any);
type.Particle = sequence;
return type;
}
public delegate void CustomerRowChangeEventHandler(object sender, CustomerRowChangeEvent e);
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
[System.Serializable()]
[System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
public partial class CustomerDataTable : System.Data.DataTable, System.Collections.IEnumerable {
private System.Data.DataColumn columnColumn1;
private System.Data.DataColumn columnColumn2;
private System.Data.DataColumn columnColumn3;
private System.Data.DataColumn columnColumn4;
private System.Data.DataColumn columnColumn5;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomerDataTable() {
this.TableName = "Customer";
this.BeginInit();
this.InitClass();
this.EndInit();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal CustomerDataTable(System.Data.DataTable table) {
this.TableName = table.TableName;
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected CustomerDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
base(info, context) {
this.InitVars();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn Column1Column {
get {
return this.columnColumn1;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn Column2Column {
get {
return this.columnColumn2;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn Column3Column {
get {
return this.columnColumn3;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn Column4Column {
get {
return this.columnColumn4;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataColumn Column5Column {
get {
return this.columnColumn5;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomerRow this[int index] {
get {
return ((CustomerRow)(this.Rows[index]));
}
}
public event CustomerRowChangeEventHandler CustomerRowChanging;
public event CustomerRowChangeEventHandler CustomerRowChanged;
public event CustomerRowChangeEventHandler CustomerRowDeleting;
public event CustomerRowChangeEventHandler CustomerRowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void AddCustomerRow(CustomerRow row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomerRow AddCustomerRow(string Column1, string Column2, string Column3, string Column4, string Column5) {
CustomerRow rowCustomerRow = ((CustomerRow)(this.NewRow()));
rowCustomerRow.ItemArray = new object[] {
Column1,
Column2,
Column3,
Column4,
Column5};
this.Rows.Add(rowCustomerRow);
return rowCustomerRow;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
CustomerDataTable cln = ((CustomerDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new CustomerDataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.columnColumn1 = base.Columns["Column1"];
this.columnColumn2 = base.Columns["Column2"];
this.columnColumn3 = base.Columns["Column3"];
this.columnColumn4 = base.Columns["Column4"];
this.columnColumn5 = base.Columns["Column5"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.columnColumn1 = new System.Data.DataColumn("Column1", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnColumn1);
this.columnColumn2 = new System.Data.DataColumn("Column2", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnColumn2);
this.columnColumn3 = new System.Data.DataColumn("Column3", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnColumn3);
this.columnColumn4 = new System.Data.DataColumn("Column4", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnColumn4);
this.columnColumn5 = new System.Data.DataColumn("Column5", typeof(string), null, System.Data.MappingType.Element);
base.Columns.Add(this.columnColumn5);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomerRow NewCustomerRow() {
return ((CustomerRow)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new CustomerRow(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(CustomerRow);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.CustomerRowChanged != null)) {
this.CustomerRowChanged(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.CustomerRowChanging != null)) {
this.CustomerRowChanging(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.CustomerRowDeleted != null)) {
this.CustomerRowDeleted(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.CustomerRowDeleting != null)) {
this.CustomerRowDeleting(this, new CustomerRowChangeEvent(((CustomerRow)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void RemoveCustomerRow(CustomerRow row) {
this.Rows.Remove(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
DataSet1 ds = new DataSet1();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "CustomerDataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public partial class CustomerRow : System.Data.DataRow {
private CustomerDataTable tableCustomer;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal CustomerRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableCustomer = ((CustomerDataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Column1 {
get {
try {
return ((string)(this[this.tableCustomer.Column1Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Column1\' in table \'Customer\' is DBNull.", e);
}
}
set {
this[this.tableCustomer.Column1Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Column2 {
get {
try {
return ((string)(this[this.tableCustomer.Column2Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Column2\' in table \'Customer\' is DBNull.", e);
}
}
set {
this[this.tableCustomer.Column2Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Column3 {
get {
try {
return ((string)(this[this.tableCustomer.Column3Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Column3\' in table \'Customer\' is DBNull.", e);
}
}
set {
this[this.tableCustomer.Column3Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Column4 {
get {
try {
return ((string)(this[this.tableCustomer.Column4Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Column4\' in table \'Customer\' is DBNull.", e);
}
}
set {
this[this.tableCustomer.Column4Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public string Column5 {
get {
try {
return ((string)(this[this.tableCustomer.Column5Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("The value for column \'Column5\' in table \'Customer\' is DBNull.", e);
}
}
set {
this[this.tableCustomer.Column5Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsColumn1Null() {
return this.IsNull(this.tableCustomer.Column1Column);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetColumn1Null() {
this[this.tableCustomer.Column1Column] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsColumn2Null() {
return this.IsNull(this.tableCustomer.Column2Column);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetColumn2Null() {
this[this.tableCustomer.Column2Column] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsColumn3Null() {
return this.IsNull(this.tableCustomer.Column3Column);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetColumn3Null() {
this[this.tableCustomer.Column3Column] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsColumn4Null() {
return this.IsNull(this.tableCustomer.Column4Column);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetColumn4Null() {
this[this.tableCustomer.Column4Column] = System.Convert.DBNull;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool IsColumn5Null() {
return this.IsNull(this.tableCustomer.Column5Column);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void SetColumn5Null() {
this[this.tableCustomer.Column5Column] = System.Convert.DBNull;
}
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
public class CustomerRowChangeEvent : System.EventArgs {
private CustomerRow eventRow;
private System.Data.DataRowAction eventAction;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomerRowChangeEvent(CustomerRow row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public CustomerRow Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
#pragma warning restore 1591