_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9.Designer.cs 75 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace Юсову_Владислав_ИСП_11._18._3 {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 : global::System.Data.DataSet {
  22. private Yusov3DataTable tableYusov3;
  23. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  24. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  25. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  26. public _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9() {
  27. this.BeginInit();
  28. this.InitClass();
  29. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  30. base.Tables.CollectionChanged += schemaChangedHandler;
  31. base.Relations.CollectionChanged += schemaChangedHandler;
  32. this.EndInit();
  33. }
  34. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  35. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  36. protected _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  37. base(info, context, false) {
  38. if ((this.IsBinarySerialized(info, context) == true)) {
  39. this.InitVars(false);
  40. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  41. this.Tables.CollectionChanged += schemaChangedHandler1;
  42. this.Relations.CollectionChanged += schemaChangedHandler1;
  43. return;
  44. }
  45. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  46. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  47. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  48. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  49. if ((ds.Tables["Yusov3"] != null)) {
  50. base.Tables.Add(new Yusov3DataTable(ds.Tables["Yusov3"]));
  51. }
  52. this.DataSetName = ds.DataSetName;
  53. this.Prefix = ds.Prefix;
  54. this.Namespace = ds.Namespace;
  55. this.Locale = ds.Locale;
  56. this.CaseSensitive = ds.CaseSensitive;
  57. this.EnforceConstraints = ds.EnforceConstraints;
  58. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  59. this.InitVars();
  60. }
  61. else {
  62. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  63. }
  64. this.GetSerializationData(info, context);
  65. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  66. base.Tables.CollectionChanged += schemaChangedHandler;
  67. this.Relations.CollectionChanged += schemaChangedHandler;
  68. }
  69. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  70. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  71. [global::System.ComponentModel.Browsable(false)]
  72. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  73. public Yusov3DataTable Yusov3 {
  74. get {
  75. return this.tableYusov3;
  76. }
  77. }
  78. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  79. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  80. [global::System.ComponentModel.BrowsableAttribute(true)]
  81. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  82. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  83. get {
  84. return this._schemaSerializationMode;
  85. }
  86. set {
  87. this._schemaSerializationMode = value;
  88. }
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  91. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  92. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  93. public new global::System.Data.DataTableCollection Tables {
  94. get {
  95. return base.Tables;
  96. }
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  99. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  100. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  101. public new global::System.Data.DataRelationCollection Relations {
  102. get {
  103. return base.Relations;
  104. }
  105. }
  106. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  107. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  108. protected override void InitializeDerivedDataSet() {
  109. this.BeginInit();
  110. this.InitClass();
  111. this.EndInit();
  112. }
  113. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  114. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  115. public override global::System.Data.DataSet Clone() {
  116. _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 cln = ((_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9)(base.Clone()));
  117. cln.InitVars();
  118. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  119. return cln;
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  123. protected override bool ShouldSerializeTables() {
  124. return false;
  125. }
  126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  128. protected override bool ShouldSerializeRelations() {
  129. return false;
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  133. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  134. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  135. this.Reset();
  136. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  137. ds.ReadXml(reader);
  138. if ((ds.Tables["Yusov3"] != null)) {
  139. base.Tables.Add(new Yusov3DataTable(ds.Tables["Yusov3"]));
  140. }
  141. this.DataSetName = ds.DataSetName;
  142. this.Prefix = ds.Prefix;
  143. this.Namespace = ds.Namespace;
  144. this.Locale = ds.Locale;
  145. this.CaseSensitive = ds.CaseSensitive;
  146. this.EnforceConstraints = ds.EnforceConstraints;
  147. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  148. this.InitVars();
  149. }
  150. else {
  151. this.ReadXml(reader);
  152. this.InitVars();
  153. }
  154. }
  155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  157. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  158. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  159. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  160. stream.Position = 0;
  161. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  162. }
  163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  165. internal void InitVars() {
  166. this.InitVars(true);
  167. }
  168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  170. internal void InitVars(bool initTable) {
  171. this.tableYusov3 = ((Yusov3DataTable)(base.Tables["Yusov3"]));
  172. if ((initTable == true)) {
  173. if ((this.tableYusov3 != null)) {
  174. this.tableYusov3.InitVars();
  175. }
  176. }
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  180. private void InitClass() {
  181. this.DataSetName = "_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9";
  182. this.Prefix = "";
  183. this.Namespace = "http://tempuri.org/_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9.xsd";
  184. this.EnforceConstraints = true;
  185. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  186. this.tableYusov3 = new Yusov3DataTable();
  187. base.Tables.Add(this.tableYusov3);
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  191. private bool ShouldSerializeYusov3() {
  192. return false;
  193. }
  194. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  195. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  196. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  197. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  198. this.InitVars();
  199. }
  200. }
  201. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  202. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  203. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  204. _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 ds = new _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9();
  205. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  206. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  207. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  208. any.Namespace = ds.Namespace;
  209. sequence.Items.Add(any);
  210. type.Particle = sequence;
  211. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  212. if (xs.Contains(dsSchema.TargetNamespace)) {
  213. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  214. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  215. try {
  216. global::System.Xml.Schema.XmlSchema schema = null;
  217. dsSchema.Write(s1);
  218. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  219. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  220. s2.SetLength(0);
  221. schema.Write(s2);
  222. if ((s1.Length == s2.Length)) {
  223. s1.Position = 0;
  224. s2.Position = 0;
  225. for (; ((s1.Position != s1.Length)
  226. && (s1.ReadByte() == s2.ReadByte())); ) {
  227. ;
  228. }
  229. if ((s1.Position == s1.Length)) {
  230. return type;
  231. }
  232. }
  233. }
  234. }
  235. finally {
  236. if ((s1 != null)) {
  237. s1.Close();
  238. }
  239. if ((s2 != null)) {
  240. s2.Close();
  241. }
  242. }
  243. }
  244. xs.Add(dsSchema);
  245. return type;
  246. }
  247. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  248. public delegate void Yusov3RowChangeEventHandler(object sender, Yusov3RowChangeEvent e);
  249. /// <summary>
  250. ///Represents the strongly named DataTable class.
  251. ///</summary>
  252. [global::System.Serializable()]
  253. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  254. public partial class Yusov3DataTable : global::System.Data.TypedTableBase<Yusov3Row> {
  255. private global::System.Data.DataColumn columnУслуга;
  256. private global::System.Data.DataColumn columnНачало_оказания_услуги;
  257. private global::System.Data.DataColumn columnКлиент;
  258. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  259. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  260. public Yusov3DataTable() {
  261. this.TableName = "Yusov3";
  262. this.BeginInit();
  263. this.InitClass();
  264. this.EndInit();
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. internal Yusov3DataTable(global::System.Data.DataTable table) {
  269. this.TableName = table.TableName;
  270. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  271. this.CaseSensitive = table.CaseSensitive;
  272. }
  273. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  274. this.Locale = table.Locale;
  275. }
  276. if ((table.Namespace != table.DataSet.Namespace)) {
  277. this.Namespace = table.Namespace;
  278. }
  279. this.Prefix = table.Prefix;
  280. this.MinimumCapacity = table.MinimumCapacity;
  281. }
  282. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  284. protected Yusov3DataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  285. base(info, context) {
  286. this.InitVars();
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. public global::System.Data.DataColumn УслугаColumn {
  291. get {
  292. return this.columnУслуга;
  293. }
  294. }
  295. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  296. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  297. public global::System.Data.DataColumn Начало_оказания_услугиColumn {
  298. get {
  299. return this.columnНачало_оказания_услуги;
  300. }
  301. }
  302. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  303. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  304. public global::System.Data.DataColumn КлиентColumn {
  305. get {
  306. return this.columnКлиент;
  307. }
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  311. [global::System.ComponentModel.Browsable(false)]
  312. public int Count {
  313. get {
  314. return this.Rows.Count;
  315. }
  316. }
  317. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  319. public Yusov3Row this[int index] {
  320. get {
  321. return ((Yusov3Row)(this.Rows[index]));
  322. }
  323. }
  324. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  325. public event Yusov3RowChangeEventHandler Yusov3RowChanging;
  326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  327. public event Yusov3RowChangeEventHandler Yusov3RowChanged;
  328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  329. public event Yusov3RowChangeEventHandler Yusov3RowDeleting;
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. public event Yusov3RowChangeEventHandler Yusov3RowDeleted;
  332. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  333. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  334. public void AddYusov3Row(Yusov3Row row) {
  335. this.Rows.Add(row);
  336. }
  337. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. public Yusov3Row AddYusov3Row(string Услуга, System.DateTime Начало_оказания_услуги, string Клиент) {
  340. Yusov3Row rowYusov3Row = ((Yusov3Row)(this.NewRow()));
  341. object[] columnValuesArray = new object[] {
  342. Услуга,
  343. Начало_оказания_услуги,
  344. Клиент};
  345. rowYusov3Row.ItemArray = columnValuesArray;
  346. this.Rows.Add(rowYusov3Row);
  347. return rowYusov3Row;
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  351. public override global::System.Data.DataTable Clone() {
  352. Yusov3DataTable cln = ((Yusov3DataTable)(base.Clone()));
  353. cln.InitVars();
  354. return cln;
  355. }
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  358. protected override global::System.Data.DataTable CreateInstance() {
  359. return new Yusov3DataTable();
  360. }
  361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  363. internal void InitVars() {
  364. this.columnУслуга = base.Columns["Услуга"];
  365. this.columnНачало_оказания_услуги = base.Columns["Начало_оказания_услуги"];
  366. this.columnКлиент = base.Columns["Клиент"];
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. private void InitClass() {
  371. this.columnУслуга = new global::System.Data.DataColumn("Услуга", typeof(string), null, global::System.Data.MappingType.Element);
  372. base.Columns.Add(this.columnУслуга);
  373. this.columnНачало_оказания_услуги = new global::System.Data.DataColumn("Начало_оказания_услуги", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  374. base.Columns.Add(this.columnНачало_оказания_услуги);
  375. this.columnКлиент = new global::System.Data.DataColumn("Клиент", typeof(string), null, global::System.Data.MappingType.Element);
  376. base.Columns.Add(this.columnКлиент);
  377. this.columnУслуга.MaxLength = 50;
  378. this.columnКлиент.MaxLength = 50;
  379. }
  380. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  381. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  382. public Yusov3Row NewYusov3Row() {
  383. return ((Yusov3Row)(this.NewRow()));
  384. }
  385. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  386. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  387. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  388. return new Yusov3Row(builder);
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  392. protected override global::System.Type GetRowType() {
  393. return typeof(Yusov3Row);
  394. }
  395. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  396. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  397. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  398. base.OnRowChanged(e);
  399. if ((this.Yusov3RowChanged != null)) {
  400. this.Yusov3RowChanged(this, new Yusov3RowChangeEvent(((Yusov3Row)(e.Row)), e.Action));
  401. }
  402. }
  403. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  404. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  405. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  406. base.OnRowChanging(e);
  407. if ((this.Yusov3RowChanging != null)) {
  408. this.Yusov3RowChanging(this, new Yusov3RowChangeEvent(((Yusov3Row)(e.Row)), e.Action));
  409. }
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  413. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  414. base.OnRowDeleted(e);
  415. if ((this.Yusov3RowDeleted != null)) {
  416. this.Yusov3RowDeleted(this, new Yusov3RowChangeEvent(((Yusov3Row)(e.Row)), e.Action));
  417. }
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  421. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  422. base.OnRowDeleting(e);
  423. if ((this.Yusov3RowDeleting != null)) {
  424. this.Yusov3RowDeleting(this, new Yusov3RowChangeEvent(((Yusov3Row)(e.Row)), e.Action));
  425. }
  426. }
  427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. public void RemoveYusov3Row(Yusov3Row row) {
  430. this.Rows.Remove(row);
  431. }
  432. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  433. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  434. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  435. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  436. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  437. _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 ds = new _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9();
  438. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  439. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  440. any1.MinOccurs = new decimal(0);
  441. any1.MaxOccurs = decimal.MaxValue;
  442. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  443. sequence.Items.Add(any1);
  444. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  445. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  446. any2.MinOccurs = new decimal(1);
  447. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  448. sequence.Items.Add(any2);
  449. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  450. attribute1.Name = "namespace";
  451. attribute1.FixedValue = ds.Namespace;
  452. type.Attributes.Add(attribute1);
  453. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  454. attribute2.Name = "tableTypeName";
  455. attribute2.FixedValue = "Yusov3DataTable";
  456. type.Attributes.Add(attribute2);
  457. type.Particle = sequence;
  458. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  459. if (xs.Contains(dsSchema.TargetNamespace)) {
  460. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  461. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  462. try {
  463. global::System.Xml.Schema.XmlSchema schema = null;
  464. dsSchema.Write(s1);
  465. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  466. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  467. s2.SetLength(0);
  468. schema.Write(s2);
  469. if ((s1.Length == s2.Length)) {
  470. s1.Position = 0;
  471. s2.Position = 0;
  472. for (; ((s1.Position != s1.Length)
  473. && (s1.ReadByte() == s2.ReadByte())); ) {
  474. ;
  475. }
  476. if ((s1.Position == s1.Length)) {
  477. return type;
  478. }
  479. }
  480. }
  481. }
  482. finally {
  483. if ((s1 != null)) {
  484. s1.Close();
  485. }
  486. if ((s2 != null)) {
  487. s2.Close();
  488. }
  489. }
  490. }
  491. xs.Add(dsSchema);
  492. return type;
  493. }
  494. }
  495. /// <summary>
  496. ///Represents strongly named DataRow class.
  497. ///</summary>
  498. public partial class Yusov3Row : global::System.Data.DataRow {
  499. private Yusov3DataTable tableYusov3;
  500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  502. internal Yusov3Row(global::System.Data.DataRowBuilder rb) :
  503. base(rb) {
  504. this.tableYusov3 = ((Yusov3DataTable)(this.Table));
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. public string Услуга {
  509. get {
  510. try {
  511. return ((string)(this[this.tableYusov3.УслугаColumn]));
  512. }
  513. catch (global::System.InvalidCastException e) {
  514. throw new global::System.Data.StrongTypingException("Значение для столбца \'Услуга\' в таблице \'Yusov3\' равно DBNull.", e);
  515. }
  516. }
  517. set {
  518. this[this.tableYusov3.УслугаColumn] = value;
  519. }
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. public System.DateTime Начало_оказания_услуги {
  524. get {
  525. try {
  526. return ((global::System.DateTime)(this[this.tableYusov3.Начало_оказания_услугиColumn]));
  527. }
  528. catch (global::System.InvalidCastException e) {
  529. throw new global::System.Data.StrongTypingException("Значение для столбца \'Начало_оказания_услуги\' в таблице \'Yusov3\' равно DBNull.", e);
  530. }
  531. }
  532. set {
  533. this[this.tableYusov3.Начало_оказания_услугиColumn] = value;
  534. }
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  537. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  538. public string Клиент {
  539. get {
  540. try {
  541. return ((string)(this[this.tableYusov3.КлиентColumn]));
  542. }
  543. catch (global::System.InvalidCastException e) {
  544. throw new global::System.Data.StrongTypingException("Значение для столбца \'Клиент\' в таблице \'Yusov3\' равно DBNull.", e);
  545. }
  546. }
  547. set {
  548. this[this.tableYusov3.КлиентColumn] = value;
  549. }
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. public bool IsУслугаNull() {
  554. return this.IsNull(this.tableYusov3.УслугаColumn);
  555. }
  556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  558. public void SetУслугаNull() {
  559. this[this.tableYusov3.УслугаColumn] = global::System.Convert.DBNull;
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  563. public bool IsНачало_оказания_услугиNull() {
  564. return this.IsNull(this.tableYusov3.Начало_оказания_услугиColumn);
  565. }
  566. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  567. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  568. public void SetНачало_оказания_услугиNull() {
  569. this[this.tableYusov3.Начало_оказания_услугиColumn] = global::System.Convert.DBNull;
  570. }
  571. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  572. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  573. public bool IsКлиентNull() {
  574. return this.IsNull(this.tableYusov3.КлиентColumn);
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. public void SetКлиентNull() {
  579. this[this.tableYusov3.КлиентColumn] = global::System.Convert.DBNull;
  580. }
  581. }
  582. /// <summary>
  583. ///Row event argument class
  584. ///</summary>
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. public class Yusov3RowChangeEvent : global::System.EventArgs {
  587. private Yusov3Row eventRow;
  588. private global::System.Data.DataRowAction eventAction;
  589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  591. public Yusov3RowChangeEvent(Yusov3Row row, global::System.Data.DataRowAction action) {
  592. this.eventRow = row;
  593. this.eventAction = action;
  594. }
  595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  597. public Yusov3Row Row {
  598. get {
  599. return this.eventRow;
  600. }
  601. }
  602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  604. public global::System.Data.DataRowAction Action {
  605. get {
  606. return this.eventAction;
  607. }
  608. }
  609. }
  610. }
  611. }
  612. namespace Юсову_Владислав_ИСП_11._18._3._Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9TableAdapters {
  613. /// <summary>
  614. ///Represents the connection and commands used to retrieve and save data.
  615. ///</summary>
  616. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  617. [global::System.ComponentModel.ToolboxItem(true)]
  618. [global::System.ComponentModel.DataObjectAttribute(true)]
  619. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  620. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  621. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  622. public partial class Yusov3TableAdapter : global::System.ComponentModel.Component {
  623. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  624. private global::System.Data.SqlClient.SqlConnection _connection;
  625. private global::System.Data.SqlClient.SqlTransaction _transaction;
  626. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  627. private bool _clearBeforeFill;
  628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  630. public Yusov3TableAdapter() {
  631. this.ClearBeforeFill = true;
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  636. get {
  637. if ((this._adapter == null)) {
  638. this.InitAdapter();
  639. }
  640. return this._adapter;
  641. }
  642. }
  643. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  644. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  645. internal global::System.Data.SqlClient.SqlConnection Connection {
  646. get {
  647. if ((this._connection == null)) {
  648. this.InitConnection();
  649. }
  650. return this._connection;
  651. }
  652. set {
  653. this._connection = value;
  654. if ((this.Adapter.InsertCommand != null)) {
  655. this.Adapter.InsertCommand.Connection = value;
  656. }
  657. if ((this.Adapter.DeleteCommand != null)) {
  658. this.Adapter.DeleteCommand.Connection = value;
  659. }
  660. if ((this.Adapter.UpdateCommand != null)) {
  661. this.Adapter.UpdateCommand.Connection = value;
  662. }
  663. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  664. if ((this.CommandCollection[i] != null)) {
  665. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  666. }
  667. }
  668. }
  669. }
  670. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  671. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  672. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  673. get {
  674. return this._transaction;
  675. }
  676. set {
  677. this._transaction = value;
  678. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  679. this.CommandCollection[i].Transaction = this._transaction;
  680. }
  681. if (((this.Adapter != null)
  682. && (this.Adapter.DeleteCommand != null))) {
  683. this.Adapter.DeleteCommand.Transaction = this._transaction;
  684. }
  685. if (((this.Adapter != null)
  686. && (this.Adapter.InsertCommand != null))) {
  687. this.Adapter.InsertCommand.Transaction = this._transaction;
  688. }
  689. if (((this.Adapter != null)
  690. && (this.Adapter.UpdateCommand != null))) {
  691. this.Adapter.UpdateCommand.Transaction = this._transaction;
  692. }
  693. }
  694. }
  695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  697. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  698. get {
  699. if ((this._commandCollection == null)) {
  700. this.InitCommandCollection();
  701. }
  702. return this._commandCollection;
  703. }
  704. }
  705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  707. public bool ClearBeforeFill {
  708. get {
  709. return this._clearBeforeFill;
  710. }
  711. set {
  712. this._clearBeforeFill = value;
  713. }
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  716. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  717. private void InitAdapter() {
  718. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  719. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  720. tableMapping.SourceTable = "Table";
  721. tableMapping.DataSetTable = "Yusov3";
  722. tableMapping.ColumnMappings.Add("Услуга", "Услуга");
  723. tableMapping.ColumnMappings.Add("Начало_оказания_услуги", "Начало_оказания_услуги");
  724. tableMapping.ColumnMappings.Add("Клиент", "Клиент");
  725. this._adapter.TableMappings.Add(tableMapping);
  726. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  727. this._adapter.InsertCommand.Connection = this.Connection;
  728. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Yusov3] ([Услуга], [Начало_оказания_услуги], [Клиент]) VALUES " +
  729. "(@Услуга, @Начало_оказания_услуги, @Клиент)";
  730. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  731. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Услуга", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Услуга", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  732. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Начало_оказания_услуги", global::System.Data.SqlDbType.DateTime2, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Начало_оказания_услуги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  733. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Клиент", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Клиент", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  734. }
  735. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  736. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  737. private void InitConnection() {
  738. this._connection = new global::System.Data.SqlClient.SqlConnection();
  739. this._connection.ConnectionString = global::Юсову_Владислав_ИСП_11._18._3.Properties.Settings.Default.Юсов_Владислав_Сергеевич_ИСП_11_18_3ConnectionString;
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. private void InitCommandCollection() {
  744. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  745. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  746. this._commandCollection[0].Connection = this.Connection;
  747. this._commandCollection[0].CommandText = "SELECT Услуга, Начало_оказания_услуги, Клиент FROM dbo.Yusov3";
  748. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  749. }
  750. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  751. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  752. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  753. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  754. public virtual int Fill(_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9.Yusov3DataTable dataTable) {
  755. this.Adapter.SelectCommand = this.CommandCollection[0];
  756. if ((this.ClearBeforeFill == true)) {
  757. dataTable.Clear();
  758. }
  759. int returnValue = this.Adapter.Fill(dataTable);
  760. return returnValue;
  761. }
  762. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  765. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  766. public virtual _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9.Yusov3DataTable GetData() {
  767. this.Adapter.SelectCommand = this.CommandCollection[0];
  768. _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9.Yusov3DataTable dataTable = new _Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9.Yusov3DataTable();
  769. this.Adapter.Fill(dataTable);
  770. return dataTable;
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  774. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  775. public virtual int Update(_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9.Yusov3DataTable dataTable) {
  776. return this.Adapter.Update(dataTable);
  777. }
  778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  780. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  781. public virtual int Update(_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 dataSet) {
  782. return this.Adapter.Update(dataSet, "Yusov3");
  783. }
  784. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  785. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  786. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  787. public virtual int Update(global::System.Data.DataRow dataRow) {
  788. return this.Adapter.Update(new global::System.Data.DataRow[] {
  789. dataRow});
  790. }
  791. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  792. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  793. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  794. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  795. return this.Adapter.Update(dataRows);
  796. }
  797. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  798. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  799. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  800. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  801. public virtual int Insert(string Услуга, global::System.Nullable<global::System.DateTime> Начало_оказания_услуги, string Клиент) {
  802. if ((Услуга == null)) {
  803. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  804. }
  805. else {
  806. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Услуга));
  807. }
  808. if ((Начало_оказания_услуги.HasValue == true)) {
  809. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Начало_оказания_услуги.Value));
  810. }
  811. else {
  812. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  813. }
  814. if ((Клиент == null)) {
  815. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  816. }
  817. else {
  818. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Клиент));
  819. }
  820. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  821. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  822. != global::System.Data.ConnectionState.Open)) {
  823. this.Adapter.InsertCommand.Connection.Open();
  824. }
  825. try {
  826. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  827. return returnValue;
  828. }
  829. finally {
  830. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  831. this.Adapter.InsertCommand.Connection.Close();
  832. }
  833. }
  834. }
  835. }
  836. /// <summary>
  837. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  838. ///</summary>
  839. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  840. [global::System.ComponentModel.ToolboxItem(true)]
  841. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  842. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  844. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  845. private UpdateOrderOption _updateOrder;
  846. private Yusov3TableAdapter _yusov3TableAdapter;
  847. private bool _backupDataSetBeforeUpdate;
  848. private global::System.Data.IDbConnection _connection;
  849. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  850. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  851. public UpdateOrderOption UpdateOrder {
  852. get {
  853. return this._updateOrder;
  854. }
  855. set {
  856. this._updateOrder = value;
  857. }
  858. }
  859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  861. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  862. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  863. "a", "System.Drawing.Design.UITypeEditor")]
  864. public Yusov3TableAdapter Yusov3TableAdapter {
  865. get {
  866. return this._yusov3TableAdapter;
  867. }
  868. set {
  869. this._yusov3TableAdapter = value;
  870. }
  871. }
  872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  874. public bool BackupDataSetBeforeUpdate {
  875. get {
  876. return this._backupDataSetBeforeUpdate;
  877. }
  878. set {
  879. this._backupDataSetBeforeUpdate = value;
  880. }
  881. }
  882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  884. [global::System.ComponentModel.Browsable(false)]
  885. public global::System.Data.IDbConnection Connection {
  886. get {
  887. if ((this._connection != null)) {
  888. return this._connection;
  889. }
  890. if (((this._yusov3TableAdapter != null)
  891. && (this._yusov3TableAdapter.Connection != null))) {
  892. return this._yusov3TableAdapter.Connection;
  893. }
  894. return null;
  895. }
  896. set {
  897. this._connection = value;
  898. }
  899. }
  900. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  901. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  902. [global::System.ComponentModel.Browsable(false)]
  903. public int TableAdapterInstanceCount {
  904. get {
  905. int count = 0;
  906. if ((this._yusov3TableAdapter != null)) {
  907. count = (count + 1);
  908. }
  909. return count;
  910. }
  911. }
  912. /// <summary>
  913. ///Update rows in top-down order.
  914. ///</summary>
  915. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  916. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  917. private int UpdateUpdatedRows(_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  918. int result = 0;
  919. if ((this._yusov3TableAdapter != null)) {
  920. global::System.Data.DataRow[] updatedRows = dataSet.Yusov3.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  921. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  922. if (((updatedRows != null)
  923. && (0 < updatedRows.Length))) {
  924. result = (result + this._yusov3TableAdapter.Update(updatedRows));
  925. allChangedRows.AddRange(updatedRows);
  926. }
  927. }
  928. return result;
  929. }
  930. /// <summary>
  931. ///Insert rows in top-down order.
  932. ///</summary>
  933. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  934. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  935. private int UpdateInsertedRows(_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  936. int result = 0;
  937. if ((this._yusov3TableAdapter != null)) {
  938. global::System.Data.DataRow[] addedRows = dataSet.Yusov3.Select(null, null, global::System.Data.DataViewRowState.Added);
  939. if (((addedRows != null)
  940. && (0 < addedRows.Length))) {
  941. result = (result + this._yusov3TableAdapter.Update(addedRows));
  942. allAddedRows.AddRange(addedRows);
  943. }
  944. }
  945. return result;
  946. }
  947. /// <summary>
  948. ///Delete rows in bottom-up order.
  949. ///</summary>
  950. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  952. private int UpdateDeletedRows(_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  953. int result = 0;
  954. if ((this._yusov3TableAdapter != null)) {
  955. global::System.Data.DataRow[] deletedRows = dataSet.Yusov3.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  956. if (((deletedRows != null)
  957. && (0 < deletedRows.Length))) {
  958. result = (result + this._yusov3TableAdapter.Update(deletedRows));
  959. allChangedRows.AddRange(deletedRows);
  960. }
  961. }
  962. return result;
  963. }
  964. /// <summary>
  965. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  966. ///</summary>
  967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  970. if (((updatedRows == null)
  971. || (updatedRows.Length < 1))) {
  972. return updatedRows;
  973. }
  974. if (((allAddedRows == null)
  975. || (allAddedRows.Count < 1))) {
  976. return updatedRows;
  977. }
  978. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  979. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  980. global::System.Data.DataRow row = updatedRows[i];
  981. if ((allAddedRows.Contains(row) == false)) {
  982. realUpdatedRows.Add(row);
  983. }
  984. }
  985. return realUpdatedRows.ToArray();
  986. }
  987. /// <summary>
  988. ///Update all changes to the dataset.
  989. ///</summary>
  990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  992. public virtual int UpdateAll(_Юсов_Владислав_Сергеевич_ИСП_11_18_3DataSet9 dataSet) {
  993. if ((dataSet == null)) {
  994. throw new global::System.ArgumentNullException("dataSet");
  995. }
  996. if ((dataSet.HasChanges() == false)) {
  997. return 0;
  998. }
  999. if (((this._yusov3TableAdapter != null)
  1000. && (this.MatchTableAdapterConnection(this._yusov3TableAdapter.Connection) == false))) {
  1001. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  1002. "r, должны использовать одинаковую строку подключения.");
  1003. }
  1004. global::System.Data.IDbConnection workConnection = this.Connection;
  1005. if ((workConnection == null)) {
  1006. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  1007. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  1008. }
  1009. bool workConnOpened = false;
  1010. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  1011. == global::System.Data.ConnectionState.Broken)) {
  1012. workConnection.Close();
  1013. }
  1014. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  1015. workConnection.Open();
  1016. workConnOpened = true;
  1017. }
  1018. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  1019. if ((workTransaction == null)) {
  1020. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  1021. "и или текущее состояние не позволяет начать транзакцию.");
  1022. }
  1023. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1024. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  1025. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  1026. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  1027. int result = 0;
  1028. global::System.Data.DataSet backupDataSet = null;
  1029. if (this.BackupDataSetBeforeUpdate) {
  1030. backupDataSet = new global::System.Data.DataSet();
  1031. backupDataSet.Merge(dataSet);
  1032. }
  1033. try {
  1034. // ---- Prepare for update -----------
  1035. //
  1036. if ((this._yusov3TableAdapter != null)) {
  1037. revertConnections.Add(this._yusov3TableAdapter, this._yusov3TableAdapter.Connection);
  1038. this._yusov3TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  1039. this._yusov3TableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  1040. if (this._yusov3TableAdapter.Adapter.AcceptChangesDuringUpdate) {
  1041. this._yusov3TableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  1042. adaptersWithAcceptChangesDuringUpdate.Add(this._yusov3TableAdapter.Adapter);
  1043. }
  1044. }
  1045. //
  1046. //---- Perform updates -----------
  1047. //
  1048. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  1049. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1050. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1051. }
  1052. else {
  1053. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1054. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1055. }
  1056. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  1057. //
  1058. //---- Commit updates -----------
  1059. //
  1060. workTransaction.Commit();
  1061. if ((0 < allAddedRows.Count)) {
  1062. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1063. allAddedRows.CopyTo(rows);
  1064. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1065. global::System.Data.DataRow row = rows[i];
  1066. row.AcceptChanges();
  1067. }
  1068. }
  1069. if ((0 < allChangedRows.Count)) {
  1070. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  1071. allChangedRows.CopyTo(rows);
  1072. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1073. global::System.Data.DataRow row = rows[i];
  1074. row.AcceptChanges();
  1075. }
  1076. }
  1077. }
  1078. catch (global::System.Exception ex) {
  1079. workTransaction.Rollback();
  1080. // ---- Restore the dataset -----------
  1081. if (this.BackupDataSetBeforeUpdate) {
  1082. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  1083. dataSet.Clear();
  1084. dataSet.Merge(backupDataSet);
  1085. }
  1086. else {
  1087. if ((0 < allAddedRows.Count)) {
  1088. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1089. allAddedRows.CopyTo(rows);
  1090. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1091. global::System.Data.DataRow row = rows[i];
  1092. row.AcceptChanges();
  1093. row.SetAdded();
  1094. }
  1095. }
  1096. }
  1097. throw ex;
  1098. }
  1099. finally {
  1100. if (workConnOpened) {
  1101. workConnection.Close();
  1102. }
  1103. if ((this._yusov3TableAdapter != null)) {
  1104. this._yusov3TableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._yusov3TableAdapter]));
  1105. this._yusov3TableAdapter.Transaction = null;
  1106. }
  1107. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  1108. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  1109. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  1110. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  1111. global::System.Data.Common.DataAdapter adapter = adapters[i];
  1112. adapter.AcceptChangesDuringUpdate = true;
  1113. }
  1114. }
  1115. }
  1116. return result;
  1117. }
  1118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1120. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  1121. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  1122. }
  1123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1125. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  1126. if ((this._connection != null)) {
  1127. return true;
  1128. }
  1129. if (((this.Connection == null)
  1130. || (inputConnection == null))) {
  1131. return true;
  1132. }
  1133. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  1134. return true;
  1135. }
  1136. return false;
  1137. }
  1138. /// <summary>
  1139. ///Update Order Option
  1140. ///</summary>
  1141. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1142. public enum UpdateOrderOption {
  1143. InsertUpdateDelete = 0,
  1144. UpdateInsertDelete = 1,
  1145. }
  1146. /// <summary>
  1147. ///Used to sort self-referenced table's rows
  1148. ///</summary>
  1149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1150. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  1151. private global::System.Data.DataRelation _relation;
  1152. private int _childFirst;
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1155. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  1156. this._relation = relation;
  1157. if (childFirst) {
  1158. this._childFirst = -1;
  1159. }
  1160. else {
  1161. this._childFirst = 1;
  1162. }
  1163. }
  1164. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1165. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1166. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  1167. global::System.Diagnostics.Debug.Assert((row != null));
  1168. global::System.Data.DataRow root = row;
  1169. distance = 0;
  1170. global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
  1171. traversedRows[row] = row;
  1172. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1173. for (
  1174. ; ((parent != null)
  1175. && (traversedRows.ContainsKey(parent) == false));
  1176. ) {
  1177. distance = (distance + 1);
  1178. root = parent;
  1179. traversedRows[parent] = parent;
  1180. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1181. }
  1182. if ((distance == 0)) {
  1183. traversedRows.Clear();
  1184. traversedRows[row] = row;
  1185. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1186. for (
  1187. ; ((parent != null)
  1188. && (traversedRows.ContainsKey(parent) == false));
  1189. ) {
  1190. distance = (distance + 1);
  1191. root = parent;
  1192. traversedRows[parent] = parent;
  1193. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1194. }
  1195. }
  1196. return root;
  1197. }
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1200. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  1201. if (object.ReferenceEquals(row1, row2)) {
  1202. return 0;
  1203. }
  1204. if ((row1 == null)) {
  1205. return -1;
  1206. }
  1207. if ((row2 == null)) {
  1208. return 1;
  1209. }
  1210. int distance1 = 0;
  1211. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  1212. int distance2 = 0;
  1213. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  1214. if (object.ReferenceEquals(root1, root2)) {
  1215. return (this._childFirst * distance1.CompareTo(distance2));
  1216. }
  1217. else {
  1218. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  1219. && (root2.Table != null)));
  1220. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  1221. return -1;
  1222. }
  1223. else {
  1224. return 1;
  1225. }
  1226. }
  1227. }
  1228. }
  1229. }
  1230. }
  1231. #pragma warning restore 1591