//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version: 1.0.3705.288 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace AeroNet { using System; using System.Data; using System.Xml; using System.Runtime.Serialization; [Serializable()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Diagnostics.DebuggerStepThrough()] [System.ComponentModel.ToolboxItem(true)] public class DataSet1 : DataSet { private V_NewsTitleDataTable tableV_NewsTitle; public DataSet1() { this.InitClass(); System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); this.Tables.CollectionChanged += schemaChangedHandler; this.Relations.CollectionChanged += schemaChangedHandler; } protected DataSet1(SerializationInfo info, StreamingContext context) { string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string)))); if ((strSchema != null)) { DataSet ds = new DataSet(); ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema))); if ((ds.Tables["V_NewsTitle"] != null)) { this.Tables.Add(new V_NewsTitleDataTable(ds.Tables["V_NewsTitle"])); } 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; } [System.ComponentModel.Browsable(false)] [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)] public V_NewsTitleDataTable V_NewsTitle { get { return this.tableV_NewsTitle; } } public override DataSet Clone() { DataSet1 cln = ((DataSet1)(base.Clone())); cln.InitVars(); return cln; } protected override bool ShouldSerializeTables() { return false; } protected override bool ShouldSerializeRelations() { return false; } protected override void ReadXmlSerializable(XmlReader reader) { this.Reset(); DataSet ds = new DataSet(); ds.ReadXml(reader); if ((ds.Tables["V_NewsTitle"] != null)) { this.Tables.Add(new V_NewsTitleDataTable(ds.Tables["V_NewsTitle"])); } 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(); } protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() { System.IO.MemoryStream stream = new System.IO.MemoryStream(); this.WriteXmlSchema(new XmlTextWriter(stream, null)); stream.Position = 0; return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null); } internal void InitVars() { this.tableV_NewsTitle = ((V_NewsTitleDataTable)(this.Tables["V_NewsTitle"])); if ((this.tableV_NewsTitle != null)) { this.tableV_NewsTitle.InitVars(); } } private void InitClass() { this.DataSetName = "DataSet1"; this.Prefix = ""; this.Namespace = "http://www.tempuri.org/DataSet1.xsd"; this.Locale = new System.Globalization.CultureInfo("ru-RU"); this.CaseSensitive = false; this.EnforceConstraints = true; this.tableV_NewsTitle = new V_NewsTitleDataTable(); this.Tables.Add(this.tableV_NewsTitle); } private bool ShouldSerializeV_NewsTitle() { return false; } private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) { if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) { this.InitVars(); } } public delegate void V_NewsTitleRowChangeEventHandler(object sender, V_NewsTitleRowChangeEvent e); [System.Diagnostics.DebuggerStepThrough()] public class V_NewsTitleDataTable : DataTable, System.Collections.IEnumerable { private DataColumn columnID; private DataColumn columnType; private DataColumn columnTitle; private DataColumn columnM; private DataColumn columny; internal V_NewsTitleDataTable() : base("V_NewsTitle") { this.InitClass(); } internal V_NewsTitleDataTable(DataTable table) : base(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; this.DisplayExpression = table.DisplayExpression; } [System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } internal DataColumn IDColumn { get { return this.columnID; } } internal DataColumn TypeColumn { get { return this.columnType; } } internal DataColumn TitleColumn { get { return this.columnTitle; } } internal DataColumn MColumn { get { return this.columnM; } } internal DataColumn yColumn { get { return this.columny; } } public V_NewsTitleRow this[int index] { get { return ((V_NewsTitleRow)(this.Rows[index])); } } public event V_NewsTitleRowChangeEventHandler V_NewsTitleRowChanged; public event V_NewsTitleRowChangeEventHandler V_NewsTitleRowChanging; public event V_NewsTitleRowChangeEventHandler V_NewsTitleRowDeleted; public event V_NewsTitleRowChangeEventHandler V_NewsTitleRowDeleting; public void AddV_NewsTitleRow(V_NewsTitleRow row) { this.Rows.Add(row); } public V_NewsTitleRow AddV_NewsTitleRow(int Type, string Title, int M, int y) { V_NewsTitleRow rowV_NewsTitleRow = ((V_NewsTitleRow)(this.NewRow())); rowV_NewsTitleRow.ItemArray = new object[] { null, Type, Title, M, y}; this.Rows.Add(rowV_NewsTitleRow); return rowV_NewsTitleRow; } public System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } public override DataTable Clone() { V_NewsTitleDataTable cln = ((V_NewsTitleDataTable)(base.Clone())); cln.InitVars(); return cln; } protected override DataTable CreateInstance() { return new V_NewsTitleDataTable(); } internal void InitVars() { this.columnID = this.Columns["ID"]; this.columnType = this.Columns["Type"]; this.columnTitle = this.Columns["Title"]; this.columnM = this.Columns["M"]; this.columny = this.Columns["y"]; } private void InitClass() { this.columnID = new DataColumn("ID", typeof(int), null, System.Data.MappingType.Element); this.Columns.Add(this.columnID); this.columnType = new DataColumn("Type", typeof(int), null, System.Data.MappingType.Element); this.Columns.Add(this.columnType); this.columnTitle = new DataColumn("Title", typeof(string), null, System.Data.MappingType.Element); this.Columns.Add(this.columnTitle); this.columnM = new DataColumn("M", typeof(int), null, System.Data.MappingType.Element); this.Columns.Add(this.columnM); this.columny = new DataColumn("y", typeof(int), null, System.Data.MappingType.Element); this.Columns.Add(this.columny); this.columnID.AutoIncrement = true; this.columnID.AllowDBNull = false; this.columnID.ReadOnly = true; this.columnType.AllowDBNull = false; } public V_NewsTitleRow NewV_NewsTitleRow() { return ((V_NewsTitleRow)(this.NewRow())); } protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new V_NewsTitleRow(builder); } protected override System.Type GetRowType() { return typeof(V_NewsTitleRow); } protected override void OnRowChanged(DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.V_NewsTitleRowChanged != null)) { this.V_NewsTitleRowChanged(this, new V_NewsTitleRowChangeEvent(((V_NewsTitleRow)(e.Row)), e.Action)); } } protected override void OnRowChanging(DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.V_NewsTitleRowChanging != null)) { this.V_NewsTitleRowChanging(this, new V_NewsTitleRowChangeEvent(((V_NewsTitleRow)(e.Row)), e.Action)); } } protected override void OnRowDeleted(DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.V_NewsTitleRowDeleted != null)) { this.V_NewsTitleRowDeleted(this, new V_NewsTitleRowChangeEvent(((V_NewsTitleRow)(e.Row)), e.Action)); } } protected override void OnRowDeleting(DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.V_NewsTitleRowDeleting != null)) { this.V_NewsTitleRowDeleting(this, new V_NewsTitleRowChangeEvent(((V_NewsTitleRow)(e.Row)), e.Action)); } } public void RemoveV_NewsTitleRow(V_NewsTitleRow row) { this.Rows.Remove(row); } } [System.Diagnostics.DebuggerStepThrough()] public class V_NewsTitleRow : DataRow { private V_NewsTitleDataTable tableV_NewsTitle; internal V_NewsTitleRow(DataRowBuilder rb) : base(rb) { this.tableV_NewsTitle = ((V_NewsTitleDataTable)(this.Table)); } public int ID { get { return ((int)(this[this.tableV_NewsTitle.IDColumn])); } set { this[this.tableV_NewsTitle.IDColumn] = value; } } public int Type { get { return ((int)(this[this.tableV_NewsTitle.TypeColumn])); } set { this[this.tableV_NewsTitle.TypeColumn] = value; } } public string Title { get { try { return ((string)(this[this.tableV_NewsTitle.TitleColumn])); } catch (InvalidCastException e) { throw new StrongTypingException("Cannot get value because it is DBNull.", e); } } set { this[this.tableV_NewsTitle.TitleColumn] = value; } } public int M { get { try { return ((int)(this[this.tableV_NewsTitle.MColumn])); } catch (InvalidCastException e) { throw new StrongTypingException("Cannot get value because it is DBNull.", e); } } set { this[this.tableV_NewsTitle.MColumn] = value; } } public int y { get { try { return ((int)(this[this.tableV_NewsTitle.yColumn])); } catch (InvalidCastException e) { throw new StrongTypingException("Cannot get value because it is DBNull.", e); } } set { this[this.tableV_NewsTitle.yColumn] = value; } } public bool IsTitleNull() { return this.IsNull(this.tableV_NewsTitle.TitleColumn); } public void SetTitleNull() { this[this.tableV_NewsTitle.TitleColumn] = System.Convert.DBNull; } public bool IsMNull() { return this.IsNull(this.tableV_NewsTitle.MColumn); } public void SetMNull() { this[this.tableV_NewsTitle.MColumn] = System.Convert.DBNull; } public bool IsyNull() { return this.IsNull(this.tableV_NewsTitle.yColumn); } public void SetyNull() { this[this.tableV_NewsTitle.yColumn] = System.Convert.DBNull; } } [System.Diagnostics.DebuggerStepThrough()] public class V_NewsTitleRowChangeEvent : EventArgs { private V_NewsTitleRow eventRow; private DataRowAction eventAction; public V_NewsTitleRowChangeEvent(V_NewsTitleRow row, DataRowAction action) { this.eventRow = row; this.eventAction = action; } public V_NewsTitleRow Row { get { return this.eventRow; } } public DataRowAction Action { get { return this.eventAction; } } } } }