authorizationkhozeevDataSet.Designer.cs 71 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace yrok2 {
  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("authorizationkhozeevDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class authorizationkhozeevDataSet : global::System.Data.DataSet {
  22. private LoginPasswordDataTable tableLoginPassword;
  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 authorizationkhozeevDataSet() {
  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 authorizationkhozeevDataSet(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["LoginPassword"] != null)) {
  50. base.Tables.Add(new LoginPasswordDataTable(ds.Tables["LoginPassword"]));
  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 LoginPasswordDataTable LoginPassword {
  74. get {
  75. return this.tableLoginPassword;
  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. authorizationkhozeevDataSet cln = ((authorizationkhozeevDataSet)(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["LoginPassword"] != null)) {
  139. base.Tables.Add(new LoginPasswordDataTable(ds.Tables["LoginPassword"]));
  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.tableLoginPassword = ((LoginPasswordDataTable)(base.Tables["LoginPassword"]));
  172. if ((initTable == true)) {
  173. if ((this.tableLoginPassword != null)) {
  174. this.tableLoginPassword.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 = "authorizationkhozeevDataSet";
  182. this.Prefix = "";
  183. this.Namespace = "http://tempuri.org/authorizationkhozeevDataSet.xsd";
  184. this.EnforceConstraints = true;
  185. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  186. this.tableLoginPassword = new LoginPasswordDataTable();
  187. base.Tables.Add(this.tableLoginPassword);
  188. }
  189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  191. private bool ShouldSerializeLoginPassword() {
  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. authorizationkhozeevDataSet ds = new authorizationkhozeevDataSet();
  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 LoginPasswordRowChangeEventHandler(object sender, LoginPasswordRowChangeEvent 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 LoginPasswordDataTable : global::System.Data.TypedTableBase<LoginPasswordRow> {
  255. private global::System.Data.DataColumn columnLogin;
  256. private global::System.Data.DataColumn columnPassword;
  257. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  258. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  259. public LoginPasswordDataTable() {
  260. this.TableName = "LoginPassword";
  261. this.BeginInit();
  262. this.InitClass();
  263. this.EndInit();
  264. }
  265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  267. internal LoginPasswordDataTable(global::System.Data.DataTable table) {
  268. this.TableName = table.TableName;
  269. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  270. this.CaseSensitive = table.CaseSensitive;
  271. }
  272. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  273. this.Locale = table.Locale;
  274. }
  275. if ((table.Namespace != table.DataSet.Namespace)) {
  276. this.Namespace = table.Namespace;
  277. }
  278. this.Prefix = table.Prefix;
  279. this.MinimumCapacity = table.MinimumCapacity;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. protected LoginPasswordDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  284. base(info, context) {
  285. this.InitVars();
  286. }
  287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  289. public global::System.Data.DataColumn LoginColumn {
  290. get {
  291. return this.columnLogin;
  292. }
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  296. public global::System.Data.DataColumn PasswordColumn {
  297. get {
  298. return this.columnPassword;
  299. }
  300. }
  301. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  302. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  303. [global::System.ComponentModel.Browsable(false)]
  304. public int Count {
  305. get {
  306. return this.Rows.Count;
  307. }
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  311. public LoginPasswordRow this[int index] {
  312. get {
  313. return ((LoginPasswordRow)(this.Rows[index]));
  314. }
  315. }
  316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  317. public event LoginPasswordRowChangeEventHandler LoginPasswordRowChanging;
  318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  319. public event LoginPasswordRowChangeEventHandler LoginPasswordRowChanged;
  320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  321. public event LoginPasswordRowChangeEventHandler LoginPasswordRowDeleting;
  322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  323. public event LoginPasswordRowChangeEventHandler LoginPasswordRowDeleted;
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  326. public void AddLoginPasswordRow(LoginPasswordRow row) {
  327. this.Rows.Add(row);
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. public LoginPasswordRow AddLoginPasswordRow(string Login, string Password) {
  332. LoginPasswordRow rowLoginPasswordRow = ((LoginPasswordRow)(this.NewRow()));
  333. object[] columnValuesArray = new object[] {
  334. Login,
  335. Password};
  336. rowLoginPasswordRow.ItemArray = columnValuesArray;
  337. this.Rows.Add(rowLoginPasswordRow);
  338. return rowLoginPasswordRow;
  339. }
  340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  342. public override global::System.Data.DataTable Clone() {
  343. LoginPasswordDataTable cln = ((LoginPasswordDataTable)(base.Clone()));
  344. cln.InitVars();
  345. return cln;
  346. }
  347. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  348. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  349. protected override global::System.Data.DataTable CreateInstance() {
  350. return new LoginPasswordDataTable();
  351. }
  352. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  353. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  354. internal void InitVars() {
  355. this.columnLogin = base.Columns["Login"];
  356. this.columnPassword = base.Columns["Password"];
  357. }
  358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  360. private void InitClass() {
  361. this.columnLogin = new global::System.Data.DataColumn("Login", typeof(string), null, global::System.Data.MappingType.Element);
  362. base.Columns.Add(this.columnLogin);
  363. this.columnPassword = new global::System.Data.DataColumn("Password", typeof(string), null, global::System.Data.MappingType.Element);
  364. base.Columns.Add(this.columnPassword);
  365. this.columnLogin.MaxLength = 50;
  366. this.columnPassword.MaxLength = 50;
  367. }
  368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  370. public LoginPasswordRow NewLoginPasswordRow() {
  371. return ((LoginPasswordRow)(this.NewRow()));
  372. }
  373. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  374. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  375. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  376. return new LoginPasswordRow(builder);
  377. }
  378. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  379. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  380. protected override global::System.Type GetRowType() {
  381. return typeof(LoginPasswordRow);
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  385. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  386. base.OnRowChanged(e);
  387. if ((this.LoginPasswordRowChanged != null)) {
  388. this.LoginPasswordRowChanged(this, new LoginPasswordRowChangeEvent(((LoginPasswordRow)(e.Row)), e.Action));
  389. }
  390. }
  391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  393. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  394. base.OnRowChanging(e);
  395. if ((this.LoginPasswordRowChanging != null)) {
  396. this.LoginPasswordRowChanging(this, new LoginPasswordRowChangeEvent(((LoginPasswordRow)(e.Row)), e.Action));
  397. }
  398. }
  399. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  400. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  401. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  402. base.OnRowDeleted(e);
  403. if ((this.LoginPasswordRowDeleted != null)) {
  404. this.LoginPasswordRowDeleted(this, new LoginPasswordRowChangeEvent(((LoginPasswordRow)(e.Row)), e.Action));
  405. }
  406. }
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  409. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  410. base.OnRowDeleting(e);
  411. if ((this.LoginPasswordRowDeleting != null)) {
  412. this.LoginPasswordRowDeleting(this, new LoginPasswordRowChangeEvent(((LoginPasswordRow)(e.Row)), e.Action));
  413. }
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. public void RemoveLoginPasswordRow(LoginPasswordRow row) {
  418. this.Rows.Remove(row);
  419. }
  420. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  421. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  422. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  423. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  424. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  425. authorizationkhozeevDataSet ds = new authorizationkhozeevDataSet();
  426. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  427. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  428. any1.MinOccurs = new decimal(0);
  429. any1.MaxOccurs = decimal.MaxValue;
  430. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  431. sequence.Items.Add(any1);
  432. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  433. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  434. any2.MinOccurs = new decimal(1);
  435. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  436. sequence.Items.Add(any2);
  437. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  438. attribute1.Name = "namespace";
  439. attribute1.FixedValue = ds.Namespace;
  440. type.Attributes.Add(attribute1);
  441. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  442. attribute2.Name = "tableTypeName";
  443. attribute2.FixedValue = "LoginPasswordDataTable";
  444. type.Attributes.Add(attribute2);
  445. type.Particle = sequence;
  446. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  447. if (xs.Contains(dsSchema.TargetNamespace)) {
  448. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  449. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  450. try {
  451. global::System.Xml.Schema.XmlSchema schema = null;
  452. dsSchema.Write(s1);
  453. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  454. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  455. s2.SetLength(0);
  456. schema.Write(s2);
  457. if ((s1.Length == s2.Length)) {
  458. s1.Position = 0;
  459. s2.Position = 0;
  460. for (; ((s1.Position != s1.Length)
  461. && (s1.ReadByte() == s2.ReadByte())); ) {
  462. ;
  463. }
  464. if ((s1.Position == s1.Length)) {
  465. return type;
  466. }
  467. }
  468. }
  469. }
  470. finally {
  471. if ((s1 != null)) {
  472. s1.Close();
  473. }
  474. if ((s2 != null)) {
  475. s2.Close();
  476. }
  477. }
  478. }
  479. xs.Add(dsSchema);
  480. return type;
  481. }
  482. }
  483. /// <summary>
  484. ///Represents strongly named DataRow class.
  485. ///</summary>
  486. public partial class LoginPasswordRow : global::System.Data.DataRow {
  487. private LoginPasswordDataTable tableLoginPassword;
  488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  490. internal LoginPasswordRow(global::System.Data.DataRowBuilder rb) :
  491. base(rb) {
  492. this.tableLoginPassword = ((LoginPasswordDataTable)(this.Table));
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  495. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  496. public string Login {
  497. get {
  498. try {
  499. return ((string)(this[this.tableLoginPassword.LoginColumn]));
  500. }
  501. catch (global::System.InvalidCastException e) {
  502. throw new global::System.Data.StrongTypingException("Значение для столбца \'Login\' в таблице \'LoginPassword\' равно DBNull.", e);
  503. }
  504. }
  505. set {
  506. this[this.tableLoginPassword.LoginColumn] = value;
  507. }
  508. }
  509. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  510. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  511. public string Password {
  512. get {
  513. try {
  514. return ((string)(this[this.tableLoginPassword.PasswordColumn]));
  515. }
  516. catch (global::System.InvalidCastException e) {
  517. throw new global::System.Data.StrongTypingException("Значение для столбца \'Password\' в таблице \'LoginPassword\' равно DBNull.", e);
  518. }
  519. }
  520. set {
  521. this[this.tableLoginPassword.PasswordColumn] = value;
  522. }
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. public bool IsLoginNull() {
  527. return this.IsNull(this.tableLoginPassword.LoginColumn);
  528. }
  529. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  530. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  531. public void SetLoginNull() {
  532. this[this.tableLoginPassword.LoginColumn] = global::System.Convert.DBNull;
  533. }
  534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  536. public bool IsPasswordNull() {
  537. return this.IsNull(this.tableLoginPassword.PasswordColumn);
  538. }
  539. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  540. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  541. public void SetPasswordNull() {
  542. this[this.tableLoginPassword.PasswordColumn] = global::System.Convert.DBNull;
  543. }
  544. }
  545. /// <summary>
  546. ///Row event argument class
  547. ///</summary>
  548. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  549. public class LoginPasswordRowChangeEvent : global::System.EventArgs {
  550. private LoginPasswordRow eventRow;
  551. private global::System.Data.DataRowAction eventAction;
  552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  554. public LoginPasswordRowChangeEvent(LoginPasswordRow row, global::System.Data.DataRowAction action) {
  555. this.eventRow = row;
  556. this.eventAction = action;
  557. }
  558. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  559. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  560. public LoginPasswordRow Row {
  561. get {
  562. return this.eventRow;
  563. }
  564. }
  565. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  566. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  567. public global::System.Data.DataRowAction Action {
  568. get {
  569. return this.eventAction;
  570. }
  571. }
  572. }
  573. }
  574. }
  575. namespace yrok2.authorizationkhozeevDataSetTableAdapters {
  576. /// <summary>
  577. ///Represents the connection and commands used to retrieve and save data.
  578. ///</summary>
  579. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  580. [global::System.ComponentModel.ToolboxItem(true)]
  581. [global::System.ComponentModel.DataObjectAttribute(true)]
  582. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  583. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  584. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  585. public partial class LoginPasswordTableAdapter : global::System.ComponentModel.Component {
  586. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  587. private global::System.Data.SqlClient.SqlConnection _connection;
  588. private global::System.Data.SqlClient.SqlTransaction _transaction;
  589. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  590. private bool _clearBeforeFill;
  591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  593. public LoginPasswordTableAdapter() {
  594. this.ClearBeforeFill = true;
  595. }
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  598. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  599. get {
  600. if ((this._adapter == null)) {
  601. this.InitAdapter();
  602. }
  603. return this._adapter;
  604. }
  605. }
  606. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  608. internal global::System.Data.SqlClient.SqlConnection Connection {
  609. get {
  610. if ((this._connection == null)) {
  611. this.InitConnection();
  612. }
  613. return this._connection;
  614. }
  615. set {
  616. this._connection = value;
  617. if ((this.Adapter.InsertCommand != null)) {
  618. this.Adapter.InsertCommand.Connection = value;
  619. }
  620. if ((this.Adapter.DeleteCommand != null)) {
  621. this.Adapter.DeleteCommand.Connection = value;
  622. }
  623. if ((this.Adapter.UpdateCommand != null)) {
  624. this.Adapter.UpdateCommand.Connection = value;
  625. }
  626. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  627. if ((this.CommandCollection[i] != null)) {
  628. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  629. }
  630. }
  631. }
  632. }
  633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  635. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  636. get {
  637. return this._transaction;
  638. }
  639. set {
  640. this._transaction = value;
  641. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  642. this.CommandCollection[i].Transaction = this._transaction;
  643. }
  644. if (((this.Adapter != null)
  645. && (this.Adapter.DeleteCommand != null))) {
  646. this.Adapter.DeleteCommand.Transaction = this._transaction;
  647. }
  648. if (((this.Adapter != null)
  649. && (this.Adapter.InsertCommand != null))) {
  650. this.Adapter.InsertCommand.Transaction = this._transaction;
  651. }
  652. if (((this.Adapter != null)
  653. && (this.Adapter.UpdateCommand != null))) {
  654. this.Adapter.UpdateCommand.Transaction = this._transaction;
  655. }
  656. }
  657. }
  658. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  659. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  660. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  661. get {
  662. if ((this._commandCollection == null)) {
  663. this.InitCommandCollection();
  664. }
  665. return this._commandCollection;
  666. }
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public bool ClearBeforeFill {
  671. get {
  672. return this._clearBeforeFill;
  673. }
  674. set {
  675. this._clearBeforeFill = value;
  676. }
  677. }
  678. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  679. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  680. private void InitAdapter() {
  681. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  682. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  683. tableMapping.SourceTable = "Table";
  684. tableMapping.DataSetTable = "LoginPassword";
  685. tableMapping.ColumnMappings.Add("Login", "Login");
  686. tableMapping.ColumnMappings.Add("Password", "Password");
  687. this._adapter.TableMappings.Add(tableMapping);
  688. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  689. this._adapter.InsertCommand.Connection = this.Connection;
  690. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[LoginPassword] ([Login], [Password]) VALUES (@Login, @Password" +
  691. ")";
  692. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  693. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Login", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Login", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  694. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Password", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Password", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  695. }
  696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. private void InitConnection() {
  699. this._connection = new global::System.Data.SqlClient.SqlConnection();
  700. this._connection.ConnectionString = global::yrok2.Properties.Settings.Default.authorizationkhozeevConnectionString;
  701. }
  702. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  703. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  704. private void InitCommandCollection() {
  705. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  706. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  707. this._commandCollection[0].Connection = this.Connection;
  708. this._commandCollection[0].CommandText = "SELECT Login, Password FROM dbo.LoginPassword";
  709. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  714. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  715. public virtual int Fill(authorizationkhozeevDataSet.LoginPasswordDataTable dataTable) {
  716. this.Adapter.SelectCommand = this.CommandCollection[0];
  717. if ((this.ClearBeforeFill == true)) {
  718. dataTable.Clear();
  719. }
  720. int returnValue = this.Adapter.Fill(dataTable);
  721. return returnValue;
  722. }
  723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  725. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  726. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  727. public virtual authorizationkhozeevDataSet.LoginPasswordDataTable GetData() {
  728. this.Adapter.SelectCommand = this.CommandCollection[0];
  729. authorizationkhozeevDataSet.LoginPasswordDataTable dataTable = new authorizationkhozeevDataSet.LoginPasswordDataTable();
  730. this.Adapter.Fill(dataTable);
  731. return dataTable;
  732. }
  733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  735. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  736. public virtual int Update(authorizationkhozeevDataSet.LoginPasswordDataTable dataTable) {
  737. return this.Adapter.Update(dataTable);
  738. }
  739. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  740. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  741. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  742. public virtual int Update(authorizationkhozeevDataSet dataSet) {
  743. return this.Adapter.Update(dataSet, "LoginPassword");
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  747. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  748. public virtual int Update(global::System.Data.DataRow dataRow) {
  749. return this.Adapter.Update(new global::System.Data.DataRow[] {
  750. dataRow});
  751. }
  752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  754. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  755. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  756. return this.Adapter.Update(dataRows);
  757. }
  758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  761. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  762. public virtual int Insert(string Login, string Password) {
  763. if ((Login == null)) {
  764. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  765. }
  766. else {
  767. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Login));
  768. }
  769. if ((Password == null)) {
  770. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  771. }
  772. else {
  773. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Password));
  774. }
  775. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  776. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  777. != global::System.Data.ConnectionState.Open)) {
  778. this.Adapter.InsertCommand.Connection.Open();
  779. }
  780. try {
  781. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  782. return returnValue;
  783. }
  784. finally {
  785. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  786. this.Adapter.InsertCommand.Connection.Close();
  787. }
  788. }
  789. }
  790. }
  791. /// <summary>
  792. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  793. ///</summary>
  794. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  795. [global::System.ComponentModel.ToolboxItem(true)]
  796. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  797. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  798. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  799. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  800. private UpdateOrderOption _updateOrder;
  801. private LoginPasswordTableAdapter _loginPasswordTableAdapter;
  802. private bool _backupDataSetBeforeUpdate;
  803. private global::System.Data.IDbConnection _connection;
  804. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  805. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  806. public UpdateOrderOption UpdateOrder {
  807. get {
  808. return this._updateOrder;
  809. }
  810. set {
  811. this._updateOrder = value;
  812. }
  813. }
  814. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  815. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  816. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  817. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  818. "a", "System.Drawing.Design.UITypeEditor")]
  819. public LoginPasswordTableAdapter LoginPasswordTableAdapter {
  820. get {
  821. return this._loginPasswordTableAdapter;
  822. }
  823. set {
  824. this._loginPasswordTableAdapter = value;
  825. }
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. public bool BackupDataSetBeforeUpdate {
  830. get {
  831. return this._backupDataSetBeforeUpdate;
  832. }
  833. set {
  834. this._backupDataSetBeforeUpdate = value;
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. [global::System.ComponentModel.Browsable(false)]
  840. public global::System.Data.IDbConnection Connection {
  841. get {
  842. if ((this._connection != null)) {
  843. return this._connection;
  844. }
  845. if (((this._loginPasswordTableAdapter != null)
  846. && (this._loginPasswordTableAdapter.Connection != null))) {
  847. return this._loginPasswordTableAdapter.Connection;
  848. }
  849. return null;
  850. }
  851. set {
  852. this._connection = value;
  853. }
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  857. [global::System.ComponentModel.Browsable(false)]
  858. public int TableAdapterInstanceCount {
  859. get {
  860. int count = 0;
  861. if ((this._loginPasswordTableAdapter != null)) {
  862. count = (count + 1);
  863. }
  864. return count;
  865. }
  866. }
  867. /// <summary>
  868. ///Update rows in top-down order.
  869. ///</summary>
  870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  872. private int UpdateUpdatedRows(authorizationkhozeevDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  873. int result = 0;
  874. if ((this._loginPasswordTableAdapter != null)) {
  875. global::System.Data.DataRow[] updatedRows = dataSet.LoginPassword.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  876. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  877. if (((updatedRows != null)
  878. && (0 < updatedRows.Length))) {
  879. result = (result + this._loginPasswordTableAdapter.Update(updatedRows));
  880. allChangedRows.AddRange(updatedRows);
  881. }
  882. }
  883. return result;
  884. }
  885. /// <summary>
  886. ///Insert rows in top-down order.
  887. ///</summary>
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  890. private int UpdateInsertedRows(authorizationkhozeevDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  891. int result = 0;
  892. if ((this._loginPasswordTableAdapter != null)) {
  893. global::System.Data.DataRow[] addedRows = dataSet.LoginPassword.Select(null, null, global::System.Data.DataViewRowState.Added);
  894. if (((addedRows != null)
  895. && (0 < addedRows.Length))) {
  896. result = (result + this._loginPasswordTableAdapter.Update(addedRows));
  897. allAddedRows.AddRange(addedRows);
  898. }
  899. }
  900. return result;
  901. }
  902. /// <summary>
  903. ///Delete rows in bottom-up order.
  904. ///</summary>
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  907. private int UpdateDeletedRows(authorizationkhozeevDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  908. int result = 0;
  909. if ((this._loginPasswordTableAdapter != null)) {
  910. global::System.Data.DataRow[] deletedRows = dataSet.LoginPassword.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  911. if (((deletedRows != null)
  912. && (0 < deletedRows.Length))) {
  913. result = (result + this._loginPasswordTableAdapter.Update(deletedRows));
  914. allChangedRows.AddRange(deletedRows);
  915. }
  916. }
  917. return result;
  918. }
  919. /// <summary>
  920. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  921. ///</summary>
  922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  924. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  925. if (((updatedRows == null)
  926. || (updatedRows.Length < 1))) {
  927. return updatedRows;
  928. }
  929. if (((allAddedRows == null)
  930. || (allAddedRows.Count < 1))) {
  931. return updatedRows;
  932. }
  933. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  934. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  935. global::System.Data.DataRow row = updatedRows[i];
  936. if ((allAddedRows.Contains(row) == false)) {
  937. realUpdatedRows.Add(row);
  938. }
  939. }
  940. return realUpdatedRows.ToArray();
  941. }
  942. /// <summary>
  943. ///Update all changes to the dataset.
  944. ///</summary>
  945. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  946. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  947. public virtual int UpdateAll(authorizationkhozeevDataSet dataSet) {
  948. if ((dataSet == null)) {
  949. throw new global::System.ArgumentNullException("dataSet");
  950. }
  951. if ((dataSet.HasChanges() == false)) {
  952. return 0;
  953. }
  954. if (((this._loginPasswordTableAdapter != null)
  955. && (this.MatchTableAdapterConnection(this._loginPasswordTableAdapter.Connection) == false))) {
  956. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  957. "r, должны использовать одинаковую строку подключения.");
  958. }
  959. global::System.Data.IDbConnection workConnection = this.Connection;
  960. if ((workConnection == null)) {
  961. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  962. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  963. }
  964. bool workConnOpened = false;
  965. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  966. == global::System.Data.ConnectionState.Broken)) {
  967. workConnection.Close();
  968. }
  969. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  970. workConnection.Open();
  971. workConnOpened = true;
  972. }
  973. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  974. if ((workTransaction == null)) {
  975. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  976. "и или текущее состояние не позволяет начать транзакцию.");
  977. }
  978. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  979. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  980. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  981. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  982. int result = 0;
  983. global::System.Data.DataSet backupDataSet = null;
  984. if (this.BackupDataSetBeforeUpdate) {
  985. backupDataSet = new global::System.Data.DataSet();
  986. backupDataSet.Merge(dataSet);
  987. }
  988. try {
  989. // ---- Prepare for update -----------
  990. //
  991. if ((this._loginPasswordTableAdapter != null)) {
  992. revertConnections.Add(this._loginPasswordTableAdapter, this._loginPasswordTableAdapter.Connection);
  993. this._loginPasswordTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  994. this._loginPasswordTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  995. if (this._loginPasswordTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  996. this._loginPasswordTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  997. adaptersWithAcceptChangesDuringUpdate.Add(this._loginPasswordTableAdapter.Adapter);
  998. }
  999. }
  1000. //
  1001. //---- Perform updates -----------
  1002. //
  1003. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  1004. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1005. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1006. }
  1007. else {
  1008. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  1009. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  1010. }
  1011. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  1012. //
  1013. //---- Commit updates -----------
  1014. //
  1015. workTransaction.Commit();
  1016. if ((0 < allAddedRows.Count)) {
  1017. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1018. allAddedRows.CopyTo(rows);
  1019. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1020. global::System.Data.DataRow row = rows[i];
  1021. row.AcceptChanges();
  1022. }
  1023. }
  1024. if ((0 < allChangedRows.Count)) {
  1025. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  1026. allChangedRows.CopyTo(rows);
  1027. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1028. global::System.Data.DataRow row = rows[i];
  1029. row.AcceptChanges();
  1030. }
  1031. }
  1032. }
  1033. catch (global::System.Exception ex) {
  1034. workTransaction.Rollback();
  1035. // ---- Restore the dataset -----------
  1036. if (this.BackupDataSetBeforeUpdate) {
  1037. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  1038. dataSet.Clear();
  1039. dataSet.Merge(backupDataSet);
  1040. }
  1041. else {
  1042. if ((0 < allAddedRows.Count)) {
  1043. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  1044. allAddedRows.CopyTo(rows);
  1045. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  1046. global::System.Data.DataRow row = rows[i];
  1047. row.AcceptChanges();
  1048. row.SetAdded();
  1049. }
  1050. }
  1051. }
  1052. throw ex;
  1053. }
  1054. finally {
  1055. if (workConnOpened) {
  1056. workConnection.Close();
  1057. }
  1058. if ((this._loginPasswordTableAdapter != null)) {
  1059. this._loginPasswordTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._loginPasswordTableAdapter]));
  1060. this._loginPasswordTableAdapter.Transaction = null;
  1061. }
  1062. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  1063. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  1064. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  1065. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  1066. global::System.Data.Common.DataAdapter adapter = adapters[i];
  1067. adapter.AcceptChangesDuringUpdate = true;
  1068. }
  1069. }
  1070. }
  1071. return result;
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  1076. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  1077. }
  1078. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1079. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1080. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  1081. if ((this._connection != null)) {
  1082. return true;
  1083. }
  1084. if (((this.Connection == null)
  1085. || (inputConnection == null))) {
  1086. return true;
  1087. }
  1088. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  1089. return true;
  1090. }
  1091. return false;
  1092. }
  1093. /// <summary>
  1094. ///Update Order Option
  1095. ///</summary>
  1096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1097. public enum UpdateOrderOption {
  1098. InsertUpdateDelete = 0,
  1099. UpdateInsertDelete = 1,
  1100. }
  1101. /// <summary>
  1102. ///Used to sort self-referenced table's rows
  1103. ///</summary>
  1104. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1105. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  1106. private global::System.Data.DataRelation _relation;
  1107. private int _childFirst;
  1108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1110. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  1111. this._relation = relation;
  1112. if (childFirst) {
  1113. this._childFirst = -1;
  1114. }
  1115. else {
  1116. this._childFirst = 1;
  1117. }
  1118. }
  1119. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1120. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1121. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  1122. global::System.Diagnostics.Debug.Assert((row != null));
  1123. global::System.Data.DataRow root = row;
  1124. distance = 0;
  1125. 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>();
  1126. traversedRows[row] = row;
  1127. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1128. for (
  1129. ; ((parent != null)
  1130. && (traversedRows.ContainsKey(parent) == false));
  1131. ) {
  1132. distance = (distance + 1);
  1133. root = parent;
  1134. traversedRows[parent] = parent;
  1135. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  1136. }
  1137. if ((distance == 0)) {
  1138. traversedRows.Clear();
  1139. traversedRows[row] = row;
  1140. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1141. for (
  1142. ; ((parent != null)
  1143. && (traversedRows.ContainsKey(parent) == false));
  1144. ) {
  1145. distance = (distance + 1);
  1146. root = parent;
  1147. traversedRows[parent] = parent;
  1148. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  1149. }
  1150. }
  1151. return root;
  1152. }
  1153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1155. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  1156. if (object.ReferenceEquals(row1, row2)) {
  1157. return 0;
  1158. }
  1159. if ((row1 == null)) {
  1160. return -1;
  1161. }
  1162. if ((row2 == null)) {
  1163. return 1;
  1164. }
  1165. int distance1 = 0;
  1166. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  1167. int distance2 = 0;
  1168. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  1169. if (object.ReferenceEquals(root1, root2)) {
  1170. return (this._childFirst * distance1.CompareTo(distance2));
  1171. }
  1172. else {
  1173. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  1174. && (root2.Table != null)));
  1175. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  1176. return -1;
  1177. }
  1178. else {
  1179. return 1;
  1180. }
  1181. }
  1182. }
  1183. }
  1184. }
  1185. }
  1186. #pragma warning restore 1591