//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.832 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ #pragma warning disable 1591 namespace Coachoid { 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("SWATHDataSet")] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] public partial class SWATHDataSet : System.Data.DataSet { private test1DataTable tabletest1; private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public SWATHDataSet() { 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 SWATHDataSet(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["test1"] != null)) { base.Tables.Add(new test1DataTable(ds.Tables["test1"])); } 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 test1DataTable test1 { get { return this.tabletest1; } } [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() { SWATHDataSet cln = ((SWATHDataSet)(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["test1"] != null)) { base.Tables.Add(new test1DataTable(ds.Tables["test1"])); } 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.tabletest1 = ((test1DataTable)(base.Tables["test1"])); if ((initTable == true)) { if ((this.tabletest1 != null)) { this.tabletest1.InitVars(); } } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { this.DataSetName = "SWATHDataSet"; this.Prefix = ""; this.Namespace = "http://tempuri.org/SWATHDataSet.xsd"; this.EnforceConstraints = true; this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; this.tabletest1 = new test1DataTable(); base.Tables.Add(this.tabletest1); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializetest1() { 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) { SWATHDataSet ds = new SWATHDataSet(); 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 test1RowChangeEventHandler(object sender, test1RowChangeEvent e); [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [System.Serializable()] [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] public partial class test1DataTable : System.Data.DataTable, System.Collections.IEnumerable { private System.Data.DataColumn columntime; private System.Data.DataColumn columnlattitude; private System.Data.DataColumn columnlongitude; private System.Data.DataColumn columnheading; private System.Data.DataColumn columndesired_heading; private System.Data.DataColumn columnmot1_current; private System.Data.DataColumn columnmot2_current; private System.Data.DataColumn columnspeed; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public test1DataTable() { this.TableName = "test1"; this.BeginInit(); this.InitClass(); this.EndInit(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal test1DataTable(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 test1DataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn timeColumn { get { return this.columntime; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn lattitudeColumn { get { return this.columnlattitude; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn longitudeColumn { get { return this.columnlongitude; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn headingColumn { get { return this.columnheading; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn desired_headingColumn { get { return this.columndesired_heading; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn mot1_currentColumn { get { return this.columnmot1_current; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn mot2_currentColumn { get { return this.columnmot2_current; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataColumn speedColumn { get { return this.columnspeed; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public test1Row this[int index] { get { return ((test1Row)(this.Rows[index])); } } public event test1RowChangeEventHandler test1RowChanging; public event test1RowChangeEventHandler test1RowChanged; public event test1RowChangeEventHandler test1RowDeleting; public event test1RowChangeEventHandler test1RowDeleted; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Addtest1Row(test1Row row) { this.Rows.Add(row); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public test1Row Addtest1Row(byte[] time, string lattitude, string longitude, string heading, string desired_heading, string mot1_current, string mot2_current, string speed) { test1Row rowtest1Row = ((test1Row)(this.NewRow())); rowtest1Row.ItemArray = new object[] { time, lattitude, longitude, heading, desired_heading, mot1_current, mot2_current, speed}; this.Rows.Add(rowtest1Row); return rowtest1Row; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public virtual System.Collections.IEnumerator GetEnumerator() { return this.Rows.GetEnumerator(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public override System.Data.DataTable Clone() { test1DataTable cln = ((test1DataTable)(base.Clone())); cln.InitVars(); return cln; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override System.Data.DataTable CreateInstance() { return new test1DataTable(); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.columntime = base.Columns["time"]; this.columnlattitude = base.Columns["lattitude"]; this.columnlongitude = base.Columns["longitude"]; this.columnheading = base.Columns["heading"]; this.columndesired_heading = base.Columns["desired_heading"]; this.columnmot1_current = base.Columns["mot1_current"]; this.columnmot2_current = base.Columns["mot2_current"]; this.columnspeed = base.Columns["speed"]; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { this.columntime = new System.Data.DataColumn("time", typeof(byte[]), null, System.Data.MappingType.Element); base.Columns.Add(this.columntime); this.columnlattitude = new System.Data.DataColumn("lattitude", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columnlattitude); this.columnlongitude = new System.Data.DataColumn("longitude", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columnlongitude); this.columnheading = new System.Data.DataColumn("heading", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columnheading); this.columndesired_heading = new System.Data.DataColumn("desired_heading", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columndesired_heading); this.columnmot1_current = new System.Data.DataColumn("mot1_current", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columnmot1_current); this.columnmot2_current = new System.Data.DataColumn("mot2_current", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columnmot2_current); this.columnspeed = new System.Data.DataColumn("speed", typeof(string), null, System.Data.MappingType.Element); base.Columns.Add(this.columnspeed); this.columntime.ReadOnly = true; this.columnlattitude.MaxLength = 10; this.columnlongitude.MaxLength = 10; this.columnheading.MaxLength = 10; this.columndesired_heading.MaxLength = 10; this.columnmot1_current.MaxLength = 10; this.columnmot2_current.MaxLength = 10; this.columnspeed.MaxLength = 10; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public test1Row Newtest1Row() { return ((test1Row)(this.NewRow())); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { return new test1Row(builder); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override System.Type GetRowType() { return typeof(test1Row); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.test1RowChanged != null)) { this.test1RowChanged(this, new test1RowChangeEvent(((test1Row)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.test1RowChanging != null)) { this.test1RowChanging(this, new test1RowChangeEvent(((test1Row)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.test1RowDeleted != null)) { this.test1RowDeleted(this, new test1RowChangeEvent(((test1Row)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.test1RowDeleting != null)) { this.test1RowDeleting(this, new test1RowChangeEvent(((test1Row)(e.Row)), e.Action)); } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Removetest1Row(test1Row 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(); SWATHDataSet ds = new SWATHDataSet(); 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 = "test1DataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; return type; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public partial class test1Row : System.Data.DataRow { private test1DataTable tabletest1; [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal test1Row(System.Data.DataRowBuilder rb) : base(rb) { this.tabletest1 = ((test1DataTable)(this.Table)); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public byte[] time { get { try { return ((byte[])(this[this.tabletest1.timeColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'time\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.timeColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string lattitude { get { try { return ((string)(this[this.tabletest1.lattitudeColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'lattitude\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.lattitudeColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string longitude { get { try { return ((string)(this[this.tabletest1.longitudeColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'longitude\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.longitudeColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string heading { get { try { return ((string)(this[this.tabletest1.headingColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'heading\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.headingColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string desired_heading { get { try { return ((string)(this[this.tabletest1.desired_headingColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'desired_heading\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.desired_headingColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string mot1_current { get { try { return ((string)(this[this.tabletest1.mot1_currentColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'mot1_current\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.mot1_currentColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string mot2_current { get { try { return ((string)(this[this.tabletest1.mot2_currentColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'mot2_current\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.mot2_currentColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public string speed { get { try { return ((string)(this[this.tabletest1.speedColumn])); } catch (System.InvalidCastException e) { throw new System.Data.StrongTypingException("The value for column \'speed\' in table \'test1\' is DBNull.", e); } } set { this[this.tabletest1.speedColumn] = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IstimeNull() { return this.IsNull(this.tabletest1.timeColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SettimeNull() { this[this.tabletest1.timeColumn] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IslattitudeNull() { return this.IsNull(this.tabletest1.lattitudeColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetlattitudeNull() { this[this.tabletest1.lattitudeColumn] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IslongitudeNull() { return this.IsNull(this.tabletest1.longitudeColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetlongitudeNull() { this[this.tabletest1.longitudeColumn] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsheadingNull() { return this.IsNull(this.tabletest1.headingColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetheadingNull() { this[this.tabletest1.headingColumn] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool Isdesired_headingNull() { return this.IsNull(this.tabletest1.desired_headingColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Setdesired_headingNull() { this[this.tabletest1.desired_headingColumn] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool Ismot1_currentNull() { return this.IsNull(this.tabletest1.mot1_currentColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Setmot1_currentNull() { this[this.tabletest1.mot1_currentColumn] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool Ismot2_currentNull() { return this.IsNull(this.tabletest1.mot2_currentColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void Setmot2_currentNull() { this[this.tabletest1.mot2_currentColumn] = System.Convert.DBNull; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsspeedNull() { return this.IsNull(this.tabletest1.speedColumn); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetspeedNull() { this[this.tabletest1.speedColumn] = System.Convert.DBNull; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class test1RowChangeEvent : System.EventArgs { private test1Row eventRow; private System.Data.DataRowAction eventAction; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public test1RowChangeEvent(test1Row row, System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public test1Row Row { get { return this.eventRow; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public System.Data.DataRowAction Action { get { return this.eventAction; } } } } } namespace Coachoid.SWATHDataSetTableAdapters { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.ComponentModel.ToolboxItem(true)] [System.ComponentModel.DataObjectAttribute(true)] [System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" + ", Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public partial class test1TableAdapter : System.ComponentModel.Component { private System.Data.SqlClient.SqlDataAdapter _adapter; private System.Data.SqlClient.SqlConnection _connection; private System.Data.SqlClient.SqlCommand[] _commandCollection; private bool _clearBeforeFill; [System.Diagnostics.DebuggerNonUserCodeAttribute()] public test1TableAdapter() { this.ClearBeforeFill = true; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private System.Data.SqlClient.SqlDataAdapter Adapter { get { if ((this._adapter == null)) { this.InitAdapter(); } return this._adapter; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] internal System.Data.SqlClient.SqlConnection Connection { get { if ((this._connection == null)) { this.InitConnection(); } return this._connection; } set { this._connection = value; if ((this.Adapter.InsertCommand != null)) { this.Adapter.InsertCommand.Connection = value; } if ((this.Adapter.DeleteCommand != null)) { this.Adapter.DeleteCommand.Connection = value; } if ((this.Adapter.UpdateCommand != null)) { this.Adapter.UpdateCommand.Connection = value; } for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) { if ((this.CommandCollection[i] != null)) { ((System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value; } } } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] protected System.Data.SqlClient.SqlCommand[] CommandCollection { get { if ((this._commandCollection == null)) { this.InitCommandCollection(); } return this._commandCollection; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool ClearBeforeFill { get { return this._clearBeforeFill; } set { this._clearBeforeFill = value; } } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitAdapter() { this._adapter = new System.Data.SqlClient.SqlDataAdapter(); System.Data.Common.DataTableMapping tableMapping = new System.Data.Common.DataTableMapping(); tableMapping.SourceTable = "Table"; tableMapping.DataSetTable = "test1"; tableMapping.ColumnMappings.Add("time", "time"); tableMapping.ColumnMappings.Add("lattitude", "lattitude"); tableMapping.ColumnMappings.Add("longitude", "longitude"); tableMapping.ColumnMappings.Add("heading", "heading"); tableMapping.ColumnMappings.Add("desired_heading", "desired_heading"); tableMapping.ColumnMappings.Add("mot1_current", "mot1_current"); tableMapping.ColumnMappings.Add("mot2_current", "mot2_current"); tableMapping.ColumnMappings.Add("speed", "speed"); this._adapter.TableMappings.Add(tableMapping); this._adapter.InsertCommand = new System.Data.SqlClient.SqlCommand(); this._adapter.InsertCommand.Connection = this.Connection; this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[test1] ([lattitude], [longitude], [heading], [desired_heading]" + ", [mot1_current], [mot2_current], [speed]) VALUES (@lattitude, @longitude, @head" + "ing, @desired_heading, @mot1_current, @mot2_current, @speed)"; this._adapter.InsertCommand.CommandType = System.Data.CommandType.Text; this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@lattitude", System.Data.SqlDbType.NChar, 0, System.Data.ParameterDirection.Input, 0, 0, "lattitude", System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@longitude", System.Data.SqlDbType.NChar, 0, System.Data.ParameterDirection.Input, 0, 0, "longitude", System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@heading", System.Data.SqlDbType.NChar, 0, System.Data.ParameterDirection.Input, 0, 0, "heading", System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@desired_heading", System.Data.SqlDbType.NChar, 0, System.Data.ParameterDirection.Input, 0, 0, "desired_heading", System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@mot1_current", System.Data.SqlDbType.NChar, 0, System.Data.ParameterDirection.Input, 0, 0, "mot1_current", System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@mot2_current", System.Data.SqlDbType.NChar, 0, System.Data.ParameterDirection.Input, 0, 0, "mot2_current", System.Data.DataRowVersion.Current, false, null, "", "", "")); this._adapter.InsertCommand.Parameters.Add(new System.Data.SqlClient.SqlParameter("@speed", System.Data.SqlDbType.NChar, 0, System.Data.ParameterDirection.Input, 0, 0, "speed", System.Data.DataRowVersion.Current, false, null, "", "", "")); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitConnection() { this._connection = new System.Data.SqlClient.SqlConnection(); this._connection.ConnectionString = global::Coachoid.Properties.Settings.Default.SWATHConnectionString; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitCommandCollection() { this._commandCollection = new System.Data.SqlClient.SqlCommand[1]; this._commandCollection[0] = new System.Data.SqlClient.SqlCommand(); this._commandCollection[0].Connection = this.Connection; this._commandCollection[0].CommandText = "SELECT time, lattitude, longitude, heading, desired_heading, mot1_current, mot2_c" + "urrent, speed FROM dbo.test1"; this._commandCollection[0].CommandType = System.Data.CommandType.Text; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Fill, true)] public virtual int Fill(SWATHDataSet.test1DataTable dataTable) { this.Adapter.SelectCommand = this.CommandCollection[0]; if ((this.ClearBeforeFill == true)) { dataTable.Clear(); } int returnValue = this.Adapter.Fill(dataTable); return returnValue; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)] public virtual SWATHDataSet.test1DataTable GetData() { this.Adapter.SelectCommand = this.CommandCollection[0]; SWATHDataSet.test1DataTable dataTable = new SWATHDataSet.test1DataTable(); this.Adapter.Fill(dataTable); return dataTable; } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(SWATHDataSet.test1DataTable dataTable) { return this.Adapter.Update(dataTable); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(SWATHDataSet dataSet) { return this.Adapter.Update(dataSet, "test1"); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(System.Data.DataRow dataRow) { return this.Adapter.Update(new System.Data.DataRow[] { dataRow}); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] public virtual int Update(System.Data.DataRow[] dataRows) { return this.Adapter.Update(dataRows); } [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")] [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, true)] public virtual int Insert(string lattitude, string longitude, string heading, string desired_heading, string mot1_current, string mot2_current, string speed) { if ((lattitude == null)) { this.Adapter.InsertCommand.Parameters[0].Value = System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[0].Value = ((string)(lattitude)); } if ((longitude == null)) { this.Adapter.InsertCommand.Parameters[1].Value = System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[1].Value = ((string)(longitude)); } if ((heading == null)) { this.Adapter.InsertCommand.Parameters[2].Value = System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[2].Value = ((string)(heading)); } if ((desired_heading == null)) { this.Adapter.InsertCommand.Parameters[3].Value = System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[3].Value = ((string)(desired_heading)); } if ((mot1_current == null)) { this.Adapter.InsertCommand.Parameters[4].Value = System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[4].Value = ((string)(mot1_current)); } if ((mot2_current == null)) { this.Adapter.InsertCommand.Parameters[5].Value = System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[5].Value = ((string)(mot2_current)); } if ((speed == null)) { this.Adapter.InsertCommand.Parameters[6].Value = System.DBNull.Value; } else { this.Adapter.InsertCommand.Parameters[6].Value = ((string)(speed)); } System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State; if (((this.Adapter.InsertCommand.Connection.State & System.Data.ConnectionState.Open) != System.Data.ConnectionState.Open)) { this.Adapter.InsertCommand.Connection.Open(); } try { int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery(); return returnValue; } finally { if ((previousConnectionState == System.Data.ConnectionState.Closed)) { this.Adapter.InsertCommand.Connection.Close(); } } } } } #pragma warning restore 1591