diff --git a/scheduler/DeviceHandler/DeviceHandler.csproj b/scheduler/DeviceHandler/DeviceHandler.csproj index 33c6a5e0..0c6c5520 100644 --- a/scheduler/DeviceHandler/DeviceHandler.csproj +++ b/scheduler/DeviceHandler/DeviceHandler.csproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -9,6 +9,12 @@ Properties DeviceHandler DeviceHandler + + + 2.0 + v3.5 + + true diff --git a/scheduler/DeviceSchedulerAgent/DataStorage.Designer.cs b/scheduler/DeviceSchedulerAgent/DataStorage.Designer.cs index 8e1e78d2..72d9d6ad 100644 --- a/scheduler/DeviceSchedulerAgent/DataStorage.Designer.cs +++ b/scheduler/DeviceSchedulerAgent/DataStorage.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.312 +// Runtime Version:2.0.50727.3053 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -11,50 +11,52 @@ #pragma warning disable 1591 namespace DeviceSchedulerAgent { - 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("DataStorage")] - [System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] - public partial class DataStorage : System.Data.DataSet { + /// + ///Represents a strongly typed in-memory cache of data. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.ComponentModel.DesignerCategoryAttribute("code")] + [global::System.ComponentModel.ToolboxItem(true)] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")] + [global::System.Xml.Serialization.XmlRootAttribute("DataStorage")] + [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")] + public partial class DataStorage : global::System.Data.DataSet { private JobDataTable tableJob; private JobActionsDataTable tableJobActions; - private System.Data.DataRelation relationJob_JobActions; + private global::System.Data.DataRelation relationJob_JobActions; - private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public DataStorage() { this.BeginInit(); this.InitClass(); - System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); base.Tables.CollectionChanged += schemaChangedHandler; base.Relations.CollectionChanged += schemaChangedHandler; this.EndInit(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected DataStorage(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected DataStorage(global::System.Runtime.Serialization.SerializationInfo info, global::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); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::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 ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { + global::System.Data.DataSet ds = new global::System.Data.DataSet(); + ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); if ((ds.Tables["Job"] != null)) { base.Tables.Add(new JobDataTable(ds.Tables["Job"])); } @@ -67,40 +69,40 @@ namespace DeviceSchedulerAgent { this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); this.InitVars(); } else { - this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema))); + this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema))); } this.GetSerializationData(info, context); - System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged); + global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::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)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public JobDataTable Job { get { return this.tableJob; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] - [System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] + [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)] public JobActionsDataTable JobActions { get { return this.tableJobActions; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.BrowsableAttribute(true)] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Visible)] - public override System.Data.SchemaSerializationMode SchemaSerializationMode { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.BrowsableAttribute(true)] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)] + public override global::System.Data.SchemaSerializationMode SchemaSerializationMode { get { return this._schemaSerializationMode; } @@ -109,52 +111,52 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new System.Data.DataTableCollection Tables { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataTableCollection Tables { get { return base.Tables; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)] - public new System.Data.DataRelationCollection Relations { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)] + public new global::System.Data.DataRelationCollection Relations { get { return base.Relations; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override void InitializeDerivedDataSet() { this.BeginInit(); this.InitClass(); this.EndInit(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override System.Data.DataSet Clone() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataSet Clone() { DataStorage cln = ((DataStorage)(base.Clone())); cln.InitVars(); cln.SchemaSerializationMode = this.SchemaSerializationMode; return cln; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] protected override bool ShouldSerializeTables() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::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)) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) { + if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) { this.Reset(); - System.Data.DataSet ds = new System.Data.DataSet(); + global::System.Data.DataSet ds = new global::System.Data.DataSet(); ds.ReadXml(reader); if ((ds.Tables["Job"] != null)) { base.Tables.Add(new JobDataTable(ds.Tables["Job"])); @@ -168,7 +170,7 @@ namespace DeviceSchedulerAgent { this.Locale = ds.Locale; this.CaseSensitive = ds.CaseSensitive; this.EnforceConstraints = ds.EnforceConstraints; - this.Merge(ds, false, System.Data.MissingSchemaAction.Add); + this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add); this.InitVars(); } else { @@ -177,20 +179,20 @@ namespace DeviceSchedulerAgent { } } - [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)); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() { + global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream(); + this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null)); stream.Position = 0; - return System.Xml.Schema.XmlSchema.Read(new System.Xml.XmlTextReader(stream), null); + return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.InitVars(true); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars(bool initTable) { this.tableJob = ((JobDataTable)(base.Tables["Job"])); if ((initTable == true)) { @@ -207,50 +209,83 @@ namespace DeviceSchedulerAgent { this.relationJob_JobActions = this.Relations["Job_JobActions"]; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { this.DataSetName = "DataStorage"; this.Prefix = ""; this.Namespace = "http://tempuri.org/DataStorage.xsd"; this.EnforceConstraints = true; - this.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema; + this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema; this.tableJob = new JobDataTable(); base.Tables.Add(this.tableJob); this.tableJobActions = new JobActionsDataTable(); base.Tables.Add(this.tableJobActions); - this.relationJob_JobActions = new System.Data.DataRelation("Job_JobActions", new System.Data.DataColumn[] { - this.tableJob.IDColumn}, new System.Data.DataColumn[] { + this.relationJob_JobActions = new global::System.Data.DataRelation("Job_JobActions", new global::System.Data.DataColumn[] { + this.tableJob.IDColumn}, new global::System.Data.DataColumn[] { this.tableJobActions.JobIDColumn}, false); this.Relations.Add(this.relationJob_JobActions); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeJob() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private bool ShouldSerializeJobActions() { return false; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) { - if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) { + if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) { this.InitVars(); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) { DataStorage ds = new DataStorage(); - 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(); + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); + global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny(); any.Namespace = ds.Namespace; sequence.Items.Add(any); type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); return type; } @@ -258,22 +293,25 @@ namespace DeviceSchedulerAgent { public delegate void JobActionsRowChangeEventHandler(object sender, JobActionsRowChangeEvent e); - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [System.Serializable()] - [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class JobDataTable : System.Data.DataTable, System.Collections.IEnumerable { + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class JobDataTable : global::System.Data.TypedTableBase { - private System.Data.DataColumn columnID; + private global::System.Data.DataColumn columnID; - private System.Data.DataColumn columnName; + private global::System.Data.DataColumn columnName; - private System.Data.DataColumn columnDescription; + private global::System.Data.DataColumn columnDescription; - private System.Data.DataColumn columnJobName; + private global::System.Data.DataColumn columnJobName; - private System.Data.DataColumn columnStartTime; + private global::System.Data.DataColumn columnStartTime; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobDataTable() { this.TableName = "Job"; this.BeginInit(); @@ -281,8 +319,8 @@ namespace DeviceSchedulerAgent { this.EndInit(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal JobDataTable(System.Data.DataTable table) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal JobDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; @@ -297,56 +335,56 @@ namespace DeviceSchedulerAgent { this.MinimumCapacity = table.MinimumCapacity; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected JobDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected JobDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn IDColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IDColumn { get { return this.columnID; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn NameColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn NameColumn { get { return this.columnName; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn DescriptionColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DescriptionColumn { get { return this.columnDescription; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn JobNameColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn JobNameColumn { get { return this.columnJobName; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn StartTimeColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn StartTimeColumn { get { return this.columnStartTime; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobRow this[int index] { get { return ((JobRow)(this.Rows[index])); @@ -361,48 +399,44 @@ namespace DeviceSchedulerAgent { public event JobRowChangeEventHandler JobRowDeleted; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void AddJobRow(JobRow row) { this.Rows.Add(row); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobRow AddJobRow(string Name, string Description, string JobName, string StartTime) { JobRow rowJobRow = ((JobRow)(this.NewRow())); - rowJobRow.ItemArray = new object[] { + object[] columnValuesArray = new object[] { null, Name, Description, JobName, StartTime}; + rowJobRow.ItemArray = columnValuesArray; this.Rows.Add(rowJobRow); return rowJobRow; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobRow FindByID(int ID) { return ((JobRow)(this.Rows.Find(new object[] { ID}))); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public virtual System.Collections.IEnumerator GetEnumerator() { - return this.Rows.GetEnumerator(); - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override System.Data.DataTable Clone() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { JobDataTable cln = ((JobDataTable)(base.Clone())); cln.InitVars(); return cln; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataTable CreateInstance() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { return new JobDataTable(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.columnID = base.Columns["ID"]; this.columnName = base.Columns["Name"]; @@ -411,19 +445,19 @@ namespace DeviceSchedulerAgent { this.columnStartTime = base.Columns["StartTime"]; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { - this.columnID = new System.Data.DataColumn("ID", typeof(int), null, System.Data.MappingType.Element); + this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnID); - this.columnName = new System.Data.DataColumn("Name", typeof(string), null, System.Data.MappingType.Element); + this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnName); - this.columnDescription = new System.Data.DataColumn("Description", typeof(string), null, System.Data.MappingType.Element); + this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDescription); - this.columnJobName = new System.Data.DataColumn("JobName", typeof(string), null, System.Data.MappingType.Element); + this.columnJobName = new global::System.Data.DataColumn("JobName", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnJobName); - this.columnStartTime = new System.Data.DataColumn("StartTime", typeof(string), null, System.Data.MappingType.Element); + this.columnStartTime = new global::System.Data.DataColumn("StartTime", typeof(string), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnStartTime); - this.Constraints.Add(new System.Data.UniqueConstraint("JobKey1", new System.Data.DataColumn[] { + this.Constraints.Add(new global::System.Data.UniqueConstraint("JobKey1", new global::System.Data.DataColumn[] { this.columnID}, true)); this.columnID.AutoIncrement = true; this.columnID.AutoIncrementSeed = 1; @@ -431,102 +465,138 @@ namespace DeviceSchedulerAgent { this.columnID.Unique = true; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobRow NewJobRow() { return ((JobRow)(this.NewRow())); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new JobRow(builder); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Type GetRowType() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { return typeof(JobRow); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.JobRowChanged != null)) { this.JobRowChanged(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.JobRowChanging != null)) { this.JobRowChanging(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.JobRowDeleted != null)) { this.JobRowDeleted(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.JobRowDeleting != null)) { this.JobRowDeleting(this, new JobRowChangeEvent(((JobRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void RemoveJobRow(JobRow 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(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); DataStorage ds = new DataStorage(); - xs.Add(ds.GetSchemaSerializable()); - System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::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; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); - System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::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; + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); - System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::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(); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "JobDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); return type; } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - [System.Serializable()] - [System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] - public partial class JobActionsDataTable : System.Data.DataTable, System.Collections.IEnumerable { + /// + ///Represents the strongly named DataTable class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + [global::System.Serializable()] + [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")] + public partial class JobActionsDataTable : global::System.Data.TypedTableBase { - private System.Data.DataColumn columnID; + private global::System.Data.DataColumn columnID; - private System.Data.DataColumn columnJobID; + private global::System.Data.DataColumn columnJobID; - private System.Data.DataColumn columnDeviceID; + private global::System.Data.DataColumn columnDeviceID; - private System.Data.DataColumn columnTurnOn; + private global::System.Data.DataColumn columnTurnOn; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobActionsDataTable() { this.TableName = "JobActions"; this.BeginInit(); @@ -534,8 +604,8 @@ namespace DeviceSchedulerAgent { this.EndInit(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal JobActionsDataTable(System.Data.DataTable table) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal JobActionsDataTable(global::System.Data.DataTable table) { this.TableName = table.TableName; if ((table.CaseSensitive != table.DataSet.CaseSensitive)) { this.CaseSensitive = table.CaseSensitive; @@ -550,49 +620,49 @@ namespace DeviceSchedulerAgent { this.MinimumCapacity = table.MinimumCapacity; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected JobActionsDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected JobActionsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : base(info, context) { this.InitVars(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn IDColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn IDColumn { get { return this.columnID; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn JobIDColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn JobIDColumn { get { return this.columnJobID; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn DeviceIDColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn DeviceIDColumn { get { return this.columnDeviceID; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataColumn TurnOnColumn { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataColumn TurnOnColumn { get { return this.columnTurnOn; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - [System.ComponentModel.Browsable(false)] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.ComponentModel.Browsable(false)] public int Count { get { return this.Rows.Count; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobActionsRow this[int index] { get { return ((JobActionsRow)(this.Rows[index])); @@ -607,47 +677,46 @@ namespace DeviceSchedulerAgent { public event JobActionsRowChangeEventHandler JobActionsRowDeleted; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void AddJobActionsRow(JobActionsRow row) { this.Rows.Add(row); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobActionsRow AddJobActionsRow(JobRow parentJobRowByJob_JobActions, int DeviceID, bool TurnOn) { JobActionsRow rowJobActionsRow = ((JobActionsRow)(this.NewRow())); - rowJobActionsRow.ItemArray = new object[] { + object[] columnValuesArray = new object[] { + null, null, - parentJobRowByJob_JobActions[0], DeviceID, TurnOn}; + if ((parentJobRowByJob_JobActions != null)) { + columnValuesArray[1] = parentJobRowByJob_JobActions[0]; + } + rowJobActionsRow.ItemArray = columnValuesArray; this.Rows.Add(rowJobActionsRow); return rowJobActionsRow; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobActionsRow FindByID(int ID) { return ((JobActionsRow)(this.Rows.Find(new object[] { ID}))); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public virtual System.Collections.IEnumerator GetEnumerator() { - return this.Rows.GetEnumerator(); - } - - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public override System.Data.DataTable Clone() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public override global::System.Data.DataTable Clone() { JobActionsDataTable cln = ((JobActionsDataTable)(base.Clone())); cln.InitVars(); return cln; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataTable CreateInstance() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataTable CreateInstance() { return new JobActionsDataTable(); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] internal void InitVars() { this.columnID = base.Columns["ID"]; this.columnJobID = base.Columns["JobID"]; @@ -655,17 +724,17 @@ namespace DeviceSchedulerAgent { this.columnTurnOn = base.Columns["TurnOn"]; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] private void InitClass() { - this.columnID = new System.Data.DataColumn("ID", typeof(int), null, System.Data.MappingType.Element); + this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnID); - this.columnJobID = new System.Data.DataColumn("JobID", typeof(int), null, System.Data.MappingType.Element); + this.columnJobID = new global::System.Data.DataColumn("JobID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnJobID); - this.columnDeviceID = new System.Data.DataColumn("DeviceID", typeof(int), null, System.Data.MappingType.Element); + this.columnDeviceID = new global::System.Data.DataColumn("DeviceID", typeof(int), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnDeviceID); - this.columnTurnOn = new System.Data.DataColumn("TurnOn", typeof(bool), null, System.Data.MappingType.Element); + this.columnTurnOn = new global::System.Data.DataColumn("TurnOn", typeof(bool), null, global::System.Data.MappingType.Element); base.Columns.Add(this.columnTurnOn); - this.Constraints.Add(new System.Data.UniqueConstraint("JobActionsKey1", new System.Data.DataColumn[] { + this.Constraints.Add(new global::System.Data.UniqueConstraint("JobActionsKey1", new global::System.Data.DataColumn[] { this.columnID}, true)); this.columnID.AutoIncrement = true; this.columnID.AutoIncrementSeed = 1; @@ -673,100 +742,136 @@ namespace DeviceSchedulerAgent { this.columnID.Unique = true; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobActionsRow NewJobActionsRow() { return ((JobActionsRow)(this.NewRow())); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) { return new JobActionsRow(builder); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override System.Type GetRowType() { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override global::System.Type GetRowType() { return typeof(JobActionsRow); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanged(e); if ((this.JobActionsRowChanged != null)) { this.JobActionsRowChanged(this, new JobActionsRowChangeEvent(((JobActionsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) { base.OnRowChanging(e); if ((this.JobActionsRowChanging != null)) { this.JobActionsRowChanging(this, new JobActionsRowChangeEvent(((JobActionsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleted(e); if ((this.JobActionsRowDeleted != null)) { this.JobActionsRowDeleted(this, new JobActionsRowChangeEvent(((JobActionsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) { base.OnRowDeleting(e); if ((this.JobActionsRowDeleting != null)) { this.JobActionsRowDeleting(this, new JobActionsRowChangeEvent(((JobActionsRow)(e.Row)), e.Action)); } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void RemoveJobActionsRow(JobActionsRow 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(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) { + global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType(); + global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence(); DataStorage ds = new DataStorage(); - xs.Add(ds.GetSchemaSerializable()); - System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any1 = new global::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; + any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any1); - System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny(); + global::System.Xml.Schema.XmlSchemaAny any2 = new global::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; + any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax; sequence.Items.Add(any2); - System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute(); + global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::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(); + global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute(); attribute2.Name = "tableTypeName"; attribute2.FixedValue = "JobActionsDataTable"; type.Attributes.Add(attribute2); type.Particle = sequence; + global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable(); + if (xs.Contains(dsSchema.TargetNamespace)) { + global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream(); + global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream(); + try { + global::System.Xml.Schema.XmlSchema schema = null; + dsSchema.Write(s1); + for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) { + schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current)); + s2.SetLength(0); + schema.Write(s2); + if ((s1.Length == s2.Length)) { + s1.Position = 0; + s2.Position = 0; + for (; ((s1.Position != s1.Length) + && (s1.ReadByte() == s2.ReadByte())); ) { + ; + } + if ((s1.Position == s1.Length)) { + return type; + } + } + } + } + finally { + if ((s1 != null)) { + s1.Close(); + } + if ((s2 != null)) { + s2.Close(); + } + } + } + xs.Add(dsSchema); return type; } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public partial class JobRow : System.Data.DataRow { + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class JobRow : global::System.Data.DataRow { private JobDataTable tableJob; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal JobRow(System.Data.DataRowBuilder rb) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal JobRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableJob = ((JobDataTable)(this.Table)); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public int ID { get { return ((int)(this[this.tableJob.IDColumn])); @@ -776,14 +881,14 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public string Name { get { try { return ((string)(this[this.tableJob.NameColumn])); } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("The value for column \'Name\' in table \'Job\' is DBNull.", e); + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Name\' in table \'Job\' is DBNull.", e); } } set { @@ -791,14 +896,14 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public string Description { get { try { return ((string)(this[this.tableJob.DescriptionColumn])); } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("The value for column \'Description\' in table \'Job\' is DBNull.", e); + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'Description\' in table \'Job\' is DBNull.", e); } } set { @@ -806,14 +911,14 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public string JobName { get { try { return ((string)(this[this.tableJob.JobNameColumn])); } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("The value for column \'JobName\' in table \'Job\' is DBNull.", e); + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'JobName\' in table \'Job\' is DBNull.", e); } } set { @@ -821,14 +926,14 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public string StartTime { get { try { return ((string)(this[this.tableJob.StartTimeColumn])); } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("The value for column \'StartTime\' in table \'Job\' is DBNull.", e); + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'StartTime\' in table \'Job\' is DBNull.", e); } } set { @@ -836,64 +941,72 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsNameNull() { return this.IsNull(this.tableJob.NameColumn); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetNameNull() { - this[this.tableJob.NameColumn] = System.Convert.DBNull; + this[this.tableJob.NameColumn] = global::System.Convert.DBNull; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsDescriptionNull() { return this.IsNull(this.tableJob.DescriptionColumn); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetDescriptionNull() { - this[this.tableJob.DescriptionColumn] = System.Convert.DBNull; + this[this.tableJob.DescriptionColumn] = global::System.Convert.DBNull; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsJobNameNull() { return this.IsNull(this.tableJob.JobNameColumn); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetJobNameNull() { - this[this.tableJob.JobNameColumn] = System.Convert.DBNull; + this[this.tableJob.JobNameColumn] = global::System.Convert.DBNull; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsStartTimeNull() { return this.IsNull(this.tableJob.StartTimeColumn); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetStartTimeNull() { - this[this.tableJob.StartTimeColumn] = System.Convert.DBNull; + this[this.tableJob.StartTimeColumn] = global::System.Convert.DBNull; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobActionsRow[] GetJobActionsRows() { - return ((JobActionsRow[])(base.GetChildRows(this.Table.ChildRelations["Job_JobActions"]))); + if ((this.Table.ChildRelations["Job_JobActions"] == null)) { + return new JobActionsRow[0]; + } + else { + return ((JobActionsRow[])(base.GetChildRows(this.Table.ChildRelations["Job_JobActions"]))); + } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public partial class JobActionsRow : System.Data.DataRow { + /// + ///Represents strongly named DataRow class. + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public partial class JobActionsRow : global::System.Data.DataRow { private JobActionsDataTable tableJobActions; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal JobActionsRow(System.Data.DataRowBuilder rb) : + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + internal JobActionsRow(global::System.Data.DataRowBuilder rb) : base(rb) { this.tableJobActions = ((JobActionsDataTable)(this.Table)); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public int ID { get { return ((int)(this[this.tableJobActions.IDColumn])); @@ -903,14 +1016,14 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public int JobID { get { try { return ((int)(this[this.tableJobActions.JobIDColumn])); } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("The value for column \'JobID\' in table \'JobActions\' is DBNull.", e); + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'JobID\' in table \'JobActions\' is DBNull.", e); } } set { @@ -918,14 +1031,14 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public int DeviceID { get { try { return ((int)(this[this.tableJobActions.DeviceIDColumn])); } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("The value for column \'DeviceID\' in table \'JobActions\' is DBNull.", e); + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'DeviceID\' in table \'JobActions\' is DBNull.", e); } } set { @@ -933,14 +1046,14 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool TurnOn { get { try { return ((bool)(this[this.tableJobActions.TurnOnColumn])); } - catch (System.InvalidCastException e) { - throw new System.Data.StrongTypingException("The value for column \'TurnOn\' in table \'JobActions\' is DBNull.", e); + catch (global::System.InvalidCastException e) { + throw new global::System.Data.StrongTypingException("The value for column \'TurnOn\' in table \'JobActions\' is DBNull.", e); } } set { @@ -948,7 +1061,7 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobRow JobRow { get { return ((JobRow)(this.GetParentRow(this.Table.ParentRelations["Job_JobActions"]))); @@ -958,87 +1071,93 @@ namespace DeviceSchedulerAgent { } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsJobIDNull() { return this.IsNull(this.tableJobActions.JobIDColumn); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetJobIDNull() { - this[this.tableJobActions.JobIDColumn] = System.Convert.DBNull; + this[this.tableJobActions.JobIDColumn] = global::System.Convert.DBNull; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsDeviceIDNull() { return this.IsNull(this.tableJobActions.DeviceIDColumn); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetDeviceIDNull() { - this[this.tableJobActions.DeviceIDColumn] = System.Convert.DBNull; + this[this.tableJobActions.DeviceIDColumn] = global::System.Convert.DBNull; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public bool IsTurnOnNull() { return this.IsNull(this.tableJobActions.TurnOnColumn); } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public void SetTurnOnNull() { - this[this.tableJobActions.TurnOnColumn] = System.Convert.DBNull; + this[this.tableJobActions.TurnOnColumn] = global::System.Convert.DBNull; } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public class JobRowChangeEvent : System.EventArgs { + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class JobRowChangeEvent : global::System.EventArgs { private JobRow eventRow; - private System.Data.DataRowAction eventAction; + private global::System.Data.DataRowAction eventAction; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public JobRowChangeEvent(JobRow row, System.Data.DataRowAction action) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public JobRowChangeEvent(JobRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobRow Row { get { return this.eventRow; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataRowAction Action { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { get { return this.eventAction; } } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] - public class JobActionsRowChangeEvent : System.EventArgs { + /// + ///Row event argument class + /// + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] + public class JobActionsRowChangeEvent : global::System.EventArgs { private JobActionsRow eventRow; - private System.Data.DataRowAction eventAction; + private global::System.Data.DataRowAction eventAction; - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public JobActionsRowChangeEvent(JobActionsRow row, System.Data.DataRowAction action) { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public JobActionsRowChangeEvent(JobActionsRow row, global::System.Data.DataRowAction action) { this.eventRow = row; this.eventAction = action; } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public JobActionsRow Row { get { return this.eventRow; } } - [System.Diagnostics.DebuggerNonUserCodeAttribute()] - public System.Data.DataRowAction Action { + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Data.DataRowAction Action { get { return this.eventAction; } diff --git a/scheduler/DeviceSchedulerAgent/DeviceSchedulerAgent.csproj b/scheduler/DeviceSchedulerAgent/DeviceSchedulerAgent.csproj index 2fb7d866..5a998dc7 100644 --- a/scheduler/DeviceSchedulerAgent/DeviceSchedulerAgent.csproj +++ b/scheduler/DeviceSchedulerAgent/DeviceSchedulerAgent.csproj @@ -1,4 +1,4 @@ - + Debug AnyCPU @@ -13,6 +13,12 @@ + + + + + 2.0 + v3.5 true @@ -33,7 +39,13 @@ + + 3.5 + + + 3.5 +