_pozdniakova_isp43DataSet.Designer.cs 170 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace pozdniacova_eks {
  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("_pozdniakova_isp43DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _pozdniakova_isp43DataSet : global::System.Data.DataSet {
  22. private client_b_importDataTable tableclient_b_import;
  23. private service_b_importDataTable tableservice_b_import;
  24. private serviceclient_b_importDataTable tableserviceclient_b_import;
  25. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  26. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  27. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  28. public _pozdniakova_isp43DataSet() {
  29. this.BeginInit();
  30. this.InitClass();
  31. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  32. base.Tables.CollectionChanged += schemaChangedHandler;
  33. base.Relations.CollectionChanged += schemaChangedHandler;
  34. this.EndInit();
  35. }
  36. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  37. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  38. protected _pozdniakova_isp43DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  39. base(info, context, false) {
  40. if ((this.IsBinarySerialized(info, context) == true)) {
  41. this.InitVars(false);
  42. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  43. this.Tables.CollectionChanged += schemaChangedHandler1;
  44. this.Relations.CollectionChanged += schemaChangedHandler1;
  45. return;
  46. }
  47. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  48. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  49. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  50. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  51. if ((ds.Tables["client_b_import"] != null)) {
  52. base.Tables.Add(new client_b_importDataTable(ds.Tables["client_b_import"]));
  53. }
  54. if ((ds.Tables["service_b_import"] != null)) {
  55. base.Tables.Add(new service_b_importDataTable(ds.Tables["service_b_import"]));
  56. }
  57. if ((ds.Tables["serviceclient_b_import"] != null)) {
  58. base.Tables.Add(new serviceclient_b_importDataTable(ds.Tables["serviceclient_b_import"]));
  59. }
  60. this.DataSetName = ds.DataSetName;
  61. this.Prefix = ds.Prefix;
  62. this.Namespace = ds.Namespace;
  63. this.Locale = ds.Locale;
  64. this.CaseSensitive = ds.CaseSensitive;
  65. this.EnforceConstraints = ds.EnforceConstraints;
  66. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  67. this.InitVars();
  68. }
  69. else {
  70. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  71. }
  72. this.GetSerializationData(info, context);
  73. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  74. base.Tables.CollectionChanged += schemaChangedHandler;
  75. this.Relations.CollectionChanged += schemaChangedHandler;
  76. }
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  78. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  79. [global::System.ComponentModel.Browsable(false)]
  80. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  81. public client_b_importDataTable client_b_import {
  82. get {
  83. return this.tableclient_b_import;
  84. }
  85. }
  86. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  87. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  88. [global::System.ComponentModel.Browsable(false)]
  89. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  90. public service_b_importDataTable service_b_import {
  91. get {
  92. return this.tableservice_b_import;
  93. }
  94. }
  95. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  96. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  97. [global::System.ComponentModel.Browsable(false)]
  98. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  99. public serviceclient_b_importDataTable serviceclient_b_import {
  100. get {
  101. return this.tableserviceclient_b_import;
  102. }
  103. }
  104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  106. [global::System.ComponentModel.BrowsableAttribute(true)]
  107. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  108. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  109. get {
  110. return this._schemaSerializationMode;
  111. }
  112. set {
  113. this._schemaSerializationMode = value;
  114. }
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  118. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  119. public new global::System.Data.DataTableCollection Tables {
  120. get {
  121. return base.Tables;
  122. }
  123. }
  124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  126. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  127. public new global::System.Data.DataRelationCollection Relations {
  128. get {
  129. return base.Relations;
  130. }
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  134. protected override void InitializeDerivedDataSet() {
  135. this.BeginInit();
  136. this.InitClass();
  137. this.EndInit();
  138. }
  139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  141. public override global::System.Data.DataSet Clone() {
  142. _pozdniakova_isp43DataSet cln = ((_pozdniakova_isp43DataSet)(base.Clone()));
  143. cln.InitVars();
  144. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  145. return cln;
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  149. protected override bool ShouldSerializeTables() {
  150. return false;
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. protected override bool ShouldSerializeRelations() {
  155. return false;
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  158. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  159. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  160. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  161. this.Reset();
  162. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  163. ds.ReadXml(reader);
  164. if ((ds.Tables["client_b_import"] != null)) {
  165. base.Tables.Add(new client_b_importDataTable(ds.Tables["client_b_import"]));
  166. }
  167. if ((ds.Tables["service_b_import"] != null)) {
  168. base.Tables.Add(new service_b_importDataTable(ds.Tables["service_b_import"]));
  169. }
  170. if ((ds.Tables["serviceclient_b_import"] != null)) {
  171. base.Tables.Add(new serviceclient_b_importDataTable(ds.Tables["serviceclient_b_import"]));
  172. }
  173. this.DataSetName = ds.DataSetName;
  174. this.Prefix = ds.Prefix;
  175. this.Namespace = ds.Namespace;
  176. this.Locale = ds.Locale;
  177. this.CaseSensitive = ds.CaseSensitive;
  178. this.EnforceConstraints = ds.EnforceConstraints;
  179. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  180. this.InitVars();
  181. }
  182. else {
  183. this.ReadXml(reader);
  184. this.InitVars();
  185. }
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  190. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  191. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  192. stream.Position = 0;
  193. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  194. }
  195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  197. internal void InitVars() {
  198. this.InitVars(true);
  199. }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  201. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  202. internal void InitVars(bool initTable) {
  203. this.tableclient_b_import = ((client_b_importDataTable)(base.Tables["client_b_import"]));
  204. if ((initTable == true)) {
  205. if ((this.tableclient_b_import != null)) {
  206. this.tableclient_b_import.InitVars();
  207. }
  208. }
  209. this.tableservice_b_import = ((service_b_importDataTable)(base.Tables["service_b_import"]));
  210. if ((initTable == true)) {
  211. if ((this.tableservice_b_import != null)) {
  212. this.tableservice_b_import.InitVars();
  213. }
  214. }
  215. this.tableserviceclient_b_import = ((serviceclient_b_importDataTable)(base.Tables["serviceclient_b_import"]));
  216. if ((initTable == true)) {
  217. if ((this.tableserviceclient_b_import != null)) {
  218. this.tableserviceclient_b_import.InitVars();
  219. }
  220. }
  221. }
  222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  224. private void InitClass() {
  225. this.DataSetName = "_pozdniakova_isp43DataSet";
  226. this.Prefix = "";
  227. this.Namespace = "http://tempuri.org/_pozdniakova_isp43DataSet.xsd";
  228. this.EnforceConstraints = true;
  229. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  230. this.tableclient_b_import = new client_b_importDataTable();
  231. base.Tables.Add(this.tableclient_b_import);
  232. this.tableservice_b_import = new service_b_importDataTable();
  233. base.Tables.Add(this.tableservice_b_import);
  234. this.tableserviceclient_b_import = new serviceclient_b_importDataTable();
  235. base.Tables.Add(this.tableserviceclient_b_import);
  236. }
  237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  239. private bool ShouldSerializeclient_b_import() {
  240. return false;
  241. }
  242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  244. private bool ShouldSerializeservice_b_import() {
  245. return false;
  246. }
  247. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  248. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  249. private bool ShouldSerializeserviceclient_b_import() {
  250. return false;
  251. }
  252. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  253. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  254. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  255. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  256. this.InitVars();
  257. }
  258. }
  259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  261. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  262. _pozdniakova_isp43DataSet ds = new _pozdniakova_isp43DataSet();
  263. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  264. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  265. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  266. any.Namespace = ds.Namespace;
  267. sequence.Items.Add(any);
  268. type.Particle = sequence;
  269. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  270. if (xs.Contains(dsSchema.TargetNamespace)) {
  271. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  272. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  273. try {
  274. global::System.Xml.Schema.XmlSchema schema = null;
  275. dsSchema.Write(s1);
  276. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  277. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  278. s2.SetLength(0);
  279. schema.Write(s2);
  280. if ((s1.Length == s2.Length)) {
  281. s1.Position = 0;
  282. s2.Position = 0;
  283. for (; ((s1.Position != s1.Length)
  284. && (s1.ReadByte() == s2.ReadByte())); ) {
  285. ;
  286. }
  287. if ((s1.Position == s1.Length)) {
  288. return type;
  289. }
  290. }
  291. }
  292. }
  293. finally {
  294. if ((s1 != null)) {
  295. s1.Close();
  296. }
  297. if ((s2 != null)) {
  298. s2.Close();
  299. }
  300. }
  301. }
  302. xs.Add(dsSchema);
  303. return type;
  304. }
  305. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  306. public delegate void client_b_importRowChangeEventHandler(object sender, client_b_importRowChangeEvent e);
  307. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  308. public delegate void service_b_importRowChangeEventHandler(object sender, service_b_importRowChangeEvent e);
  309. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  310. public delegate void serviceclient_b_importRowChangeEventHandler(object sender, serviceclient_b_importRowChangeEvent e);
  311. /// <summary>
  312. ///Represents the strongly named DataTable class.
  313. ///</summary>
  314. [global::System.Serializable()]
  315. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  316. public partial class client_b_importDataTable : global::System.Data.TypedTableBase<client_b_importRow> {
  317. private global::System.Data.DataColumn columnФамилия;
  318. private global::System.Data.DataColumn columnИмя;
  319. private global::System.Data.DataColumn columnОтчество;
  320. private global::System.Data.DataColumn columnПол;
  321. private global::System.Data.DataColumn columnТелефон;
  322. private global::System.Data.DataColumn columnДата_рождения;
  323. private global::System.Data.DataColumn columnEmail;
  324. private global::System.Data.DataColumn columnДата_регистрации;
  325. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  326. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  327. public client_b_importDataTable() {
  328. this.TableName = "client_b_import";
  329. this.BeginInit();
  330. this.InitClass();
  331. this.EndInit();
  332. }
  333. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. internal client_b_importDataTable(global::System.Data.DataTable table) {
  336. this.TableName = table.TableName;
  337. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  338. this.CaseSensitive = table.CaseSensitive;
  339. }
  340. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  341. this.Locale = table.Locale;
  342. }
  343. if ((table.Namespace != table.DataSet.Namespace)) {
  344. this.Namespace = table.Namespace;
  345. }
  346. this.Prefix = table.Prefix;
  347. this.MinimumCapacity = table.MinimumCapacity;
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  351. protected client_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  352. base(info, context) {
  353. this.InitVars();
  354. }
  355. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  356. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  357. public global::System.Data.DataColumn ФамилияColumn {
  358. get {
  359. return this.columnФамилия;
  360. }
  361. }
  362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  364. public global::System.Data.DataColumn ИмяColumn {
  365. get {
  366. return this.columnИмя;
  367. }
  368. }
  369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  371. public global::System.Data.DataColumn ОтчествоColumn {
  372. get {
  373. return this.columnОтчество;
  374. }
  375. }
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  377. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  378. public global::System.Data.DataColumn ПолColumn {
  379. get {
  380. return this.columnПол;
  381. }
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  384. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  385. public global::System.Data.DataColumn ТелефонColumn {
  386. get {
  387. return this.columnТелефон;
  388. }
  389. }
  390. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  392. public global::System.Data.DataColumn Дата_рожденияColumn {
  393. get {
  394. return this.columnДата_рождения;
  395. }
  396. }
  397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  399. public global::System.Data.DataColumn EmailColumn {
  400. get {
  401. return this.columnEmail;
  402. }
  403. }
  404. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  405. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  406. public global::System.Data.DataColumn Дата_регистрацииColumn {
  407. get {
  408. return this.columnДата_регистрации;
  409. }
  410. }
  411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  413. [global::System.ComponentModel.Browsable(false)]
  414. public int Count {
  415. get {
  416. return this.Rows.Count;
  417. }
  418. }
  419. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  420. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  421. public client_b_importRow this[int index] {
  422. get {
  423. return ((client_b_importRow)(this.Rows[index]));
  424. }
  425. }
  426. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  427. public event client_b_importRowChangeEventHandler client_b_importRowChanging;
  428. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  429. public event client_b_importRowChangeEventHandler client_b_importRowChanged;
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. public event client_b_importRowChangeEventHandler client_b_importRowDeleting;
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. public event client_b_importRowChangeEventHandler client_b_importRowDeleted;
  434. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  435. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  436. public void Addclient_b_importRow(client_b_importRow row) {
  437. this.Rows.Add(row);
  438. }
  439. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  440. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  441. public client_b_importRow Addclient_b_importRow(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  442. client_b_importRow rowclient_b_importRow = ((client_b_importRow)(this.NewRow()));
  443. object[] columnValuesArray = new object[] {
  444. Фамилия,
  445. Имя,
  446. Отчество,
  447. Пол,
  448. Телефон,
  449. Дата_рождения,
  450. Email,
  451. Дата_регистрации};
  452. rowclient_b_importRow.ItemArray = columnValuesArray;
  453. this.Rows.Add(rowclient_b_importRow);
  454. return rowclient_b_importRow;
  455. }
  456. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  457. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  458. public override global::System.Data.DataTable Clone() {
  459. client_b_importDataTable cln = ((client_b_importDataTable)(base.Clone()));
  460. cln.InitVars();
  461. return cln;
  462. }
  463. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  464. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  465. protected override global::System.Data.DataTable CreateInstance() {
  466. return new client_b_importDataTable();
  467. }
  468. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  470. internal void InitVars() {
  471. this.columnФамилия = base.Columns["Фамилия"];
  472. this.columnИмя = base.Columns["Имя"];
  473. this.columnОтчество = base.Columns["Отчество"];
  474. this.columnПол = base.Columns["Пол"];
  475. this.columnТелефон = base.Columns["Телефон"];
  476. this.columnДата_рождения = base.Columns["Дата_рождения"];
  477. this.columnEmail = base.Columns["Email"];
  478. this.columnДата_регистрации = base.Columns["Дата_регистрации"];
  479. }
  480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  482. private void InitClass() {
  483. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  484. base.Columns.Add(this.columnФамилия);
  485. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  486. base.Columns.Add(this.columnИмя);
  487. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  488. base.Columns.Add(this.columnОтчество);
  489. this.columnПол = new global::System.Data.DataColumn("Пол", typeof(string), null, global::System.Data.MappingType.Element);
  490. base.Columns.Add(this.columnПол);
  491. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  492. base.Columns.Add(this.columnТелефон);
  493. this.columnДата_рождения = new global::System.Data.DataColumn("Дата_рождения", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  494. base.Columns.Add(this.columnДата_рождения);
  495. this.columnEmail = new global::System.Data.DataColumn("Email", typeof(string), null, global::System.Data.MappingType.Element);
  496. base.Columns.Add(this.columnEmail);
  497. this.columnДата_регистрации = new global::System.Data.DataColumn("Дата_регистрации", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  498. base.Columns.Add(this.columnДата_регистрации);
  499. this.columnФамилия.AllowDBNull = false;
  500. this.columnФамилия.MaxLength = 50;
  501. this.columnИмя.MaxLength = 50;
  502. this.columnОтчество.MaxLength = 50;
  503. this.columnПол.AllowDBNull = false;
  504. this.columnПол.MaxLength = 50;
  505. this.columnТелефон.AllowDBNull = false;
  506. this.columnТелефон.MaxLength = 50;
  507. this.columnДата_рождения.AllowDBNull = false;
  508. this.columnEmail.AllowDBNull = false;
  509. this.columnEmail.MaxLength = 50;
  510. this.columnДата_регистрации.AllowDBNull = false;
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  514. public client_b_importRow Newclient_b_importRow() {
  515. return ((client_b_importRow)(this.NewRow()));
  516. }
  517. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  518. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  519. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  520. return new client_b_importRow(builder);
  521. }
  522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  524. protected override global::System.Type GetRowType() {
  525. return typeof(client_b_importRow);
  526. }
  527. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  528. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  529. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  530. base.OnRowChanged(e);
  531. if ((this.client_b_importRowChanged != null)) {
  532. this.client_b_importRowChanged(this, new client_b_importRowChangeEvent(((client_b_importRow)(e.Row)), e.Action));
  533. }
  534. }
  535. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  536. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  537. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  538. base.OnRowChanging(e);
  539. if ((this.client_b_importRowChanging != null)) {
  540. this.client_b_importRowChanging(this, new client_b_importRowChangeEvent(((client_b_importRow)(e.Row)), e.Action));
  541. }
  542. }
  543. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  544. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  545. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  546. base.OnRowDeleted(e);
  547. if ((this.client_b_importRowDeleted != null)) {
  548. this.client_b_importRowDeleted(this, new client_b_importRowChangeEvent(((client_b_importRow)(e.Row)), e.Action));
  549. }
  550. }
  551. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  552. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  553. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  554. base.OnRowDeleting(e);
  555. if ((this.client_b_importRowDeleting != null)) {
  556. this.client_b_importRowDeleting(this, new client_b_importRowChangeEvent(((client_b_importRow)(e.Row)), e.Action));
  557. }
  558. }
  559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  561. public void Removeclient_b_importRow(client_b_importRow row) {
  562. this.Rows.Remove(row);
  563. }
  564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  566. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  567. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  568. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  569. _pozdniakova_isp43DataSet ds = new _pozdniakova_isp43DataSet();
  570. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  571. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  572. any1.MinOccurs = new decimal(0);
  573. any1.MaxOccurs = decimal.MaxValue;
  574. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  575. sequence.Items.Add(any1);
  576. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  577. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  578. any2.MinOccurs = new decimal(1);
  579. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  580. sequence.Items.Add(any2);
  581. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  582. attribute1.Name = "namespace";
  583. attribute1.FixedValue = ds.Namespace;
  584. type.Attributes.Add(attribute1);
  585. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  586. attribute2.Name = "tableTypeName";
  587. attribute2.FixedValue = "client_b_importDataTable";
  588. type.Attributes.Add(attribute2);
  589. type.Particle = sequence;
  590. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  591. if (xs.Contains(dsSchema.TargetNamespace)) {
  592. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  593. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  594. try {
  595. global::System.Xml.Schema.XmlSchema schema = null;
  596. dsSchema.Write(s1);
  597. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  598. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  599. s2.SetLength(0);
  600. schema.Write(s2);
  601. if ((s1.Length == s2.Length)) {
  602. s1.Position = 0;
  603. s2.Position = 0;
  604. for (; ((s1.Position != s1.Length)
  605. && (s1.ReadByte() == s2.ReadByte())); ) {
  606. ;
  607. }
  608. if ((s1.Position == s1.Length)) {
  609. return type;
  610. }
  611. }
  612. }
  613. }
  614. finally {
  615. if ((s1 != null)) {
  616. s1.Close();
  617. }
  618. if ((s2 != null)) {
  619. s2.Close();
  620. }
  621. }
  622. }
  623. xs.Add(dsSchema);
  624. return type;
  625. }
  626. }
  627. /// <summary>
  628. ///Represents the strongly named DataTable class.
  629. ///</summary>
  630. [global::System.Serializable()]
  631. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  632. public partial class service_b_importDataTable : global::System.Data.TypedTableBase<service_b_importRow> {
  633. private global::System.Data.DataColumn columnНаименование_услуги;
  634. private global::System.Data.DataColumn columnГлавное_изображение;
  635. private global::System.Data.DataColumn columnДлительность;
  636. private global::System.Data.DataColumn columnСтоимость;
  637. private global::System.Data.DataColumn columnДействующая_скидка;
  638. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  639. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  640. public service_b_importDataTable() {
  641. this.TableName = "service_b_import";
  642. this.BeginInit();
  643. this.InitClass();
  644. this.EndInit();
  645. }
  646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  648. internal service_b_importDataTable(global::System.Data.DataTable table) {
  649. this.TableName = table.TableName;
  650. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  651. this.CaseSensitive = table.CaseSensitive;
  652. }
  653. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  654. this.Locale = table.Locale;
  655. }
  656. if ((table.Namespace != table.DataSet.Namespace)) {
  657. this.Namespace = table.Namespace;
  658. }
  659. this.Prefix = table.Prefix;
  660. this.MinimumCapacity = table.MinimumCapacity;
  661. }
  662. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  663. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  664. protected service_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  665. base(info, context) {
  666. this.InitVars();
  667. }
  668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  670. public global::System.Data.DataColumn Наименование_услугиColumn {
  671. get {
  672. return this.columnНаименование_услуги;
  673. }
  674. }
  675. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  676. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  677. public global::System.Data.DataColumn Главное_изображениеColumn {
  678. get {
  679. return this.columnГлавное_изображение;
  680. }
  681. }
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  683. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  684. public global::System.Data.DataColumn ДлительностьColumn {
  685. get {
  686. return this.columnДлительность;
  687. }
  688. }
  689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  691. public global::System.Data.DataColumn СтоимостьColumn {
  692. get {
  693. return this.columnСтоимость;
  694. }
  695. }
  696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  698. public global::System.Data.DataColumn Действующая_скидкаColumn {
  699. get {
  700. return this.columnДействующая_скидка;
  701. }
  702. }
  703. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  704. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  705. [global::System.ComponentModel.Browsable(false)]
  706. public int Count {
  707. get {
  708. return this.Rows.Count;
  709. }
  710. }
  711. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  712. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  713. public service_b_importRow this[int index] {
  714. get {
  715. return ((service_b_importRow)(this.Rows[index]));
  716. }
  717. }
  718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  719. public event service_b_importRowChangeEventHandler service_b_importRowChanging;
  720. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  721. public event service_b_importRowChangeEventHandler service_b_importRowChanged;
  722. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  723. public event service_b_importRowChangeEventHandler service_b_importRowDeleting;
  724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  725. public event service_b_importRowChangeEventHandler service_b_importRowDeleted;
  726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  728. public void Addservice_b_importRow(service_b_importRow row) {
  729. this.Rows.Add(row);
  730. }
  731. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  732. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  733. public service_b_importRow Addservice_b_importRow(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  734. service_b_importRow rowservice_b_importRow = ((service_b_importRow)(this.NewRow()));
  735. object[] columnValuesArray = new object[] {
  736. Наименование_услуги,
  737. Главное_изображение,
  738. Длительность,
  739. Стоимость,
  740. Действующая_скидка};
  741. rowservice_b_importRow.ItemArray = columnValuesArray;
  742. this.Rows.Add(rowservice_b_importRow);
  743. return rowservice_b_importRow;
  744. }
  745. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  746. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  747. public override global::System.Data.DataTable Clone() {
  748. service_b_importDataTable cln = ((service_b_importDataTable)(base.Clone()));
  749. cln.InitVars();
  750. return cln;
  751. }
  752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  753. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  754. protected override global::System.Data.DataTable CreateInstance() {
  755. return new service_b_importDataTable();
  756. }
  757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  759. internal void InitVars() {
  760. this.columnНаименование_услуги = base.Columns["Наименование_услуги"];
  761. this.columnГлавное_изображение = base.Columns["Главное_изображение"];
  762. this.columnДлительность = base.Columns["Длительность"];
  763. this.columnСтоимость = base.Columns["Стоимость"];
  764. this.columnДействующая_скидка = base.Columns["Действующая_скидка"];
  765. }
  766. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  768. private void InitClass() {
  769. this.columnНаименование_услуги = new global::System.Data.DataColumn("Наименование_услуги", typeof(string), null, global::System.Data.MappingType.Element);
  770. base.Columns.Add(this.columnНаименование_услуги);
  771. this.columnГлавное_изображение = new global::System.Data.DataColumn("Главное_изображение", typeof(string), null, global::System.Data.MappingType.Element);
  772. base.Columns.Add(this.columnГлавное_изображение);
  773. this.columnДлительность = new global::System.Data.DataColumn("Длительность", typeof(string), null, global::System.Data.MappingType.Element);
  774. base.Columns.Add(this.columnДлительность);
  775. this.columnСтоимость = new global::System.Data.DataColumn("Стоимость", typeof(string), null, global::System.Data.MappingType.Element);
  776. base.Columns.Add(this.columnСтоимость);
  777. this.columnДействующая_скидка = new global::System.Data.DataColumn("Действующая_скидка", typeof(string), null, global::System.Data.MappingType.Element);
  778. base.Columns.Add(this.columnДействующая_скидка);
  779. this.columnНаименование_услуги.AllowDBNull = false;
  780. this.columnНаименование_услуги.MaxLength = 50;
  781. this.columnГлавное_изображение.AllowDBNull = false;
  782. this.columnГлавное_изображение.MaxLength = 100;
  783. this.columnДлительность.AllowDBNull = false;
  784. this.columnДлительность.MaxLength = 50;
  785. this.columnСтоимость.AllowDBNull = false;
  786. this.columnСтоимость.MaxLength = 50;
  787. this.columnДействующая_скидка.AllowDBNull = false;
  788. this.columnДействующая_скидка.MaxLength = 50;
  789. }
  790. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  791. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  792. public service_b_importRow Newservice_b_importRow() {
  793. return ((service_b_importRow)(this.NewRow()));
  794. }
  795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  797. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  798. return new service_b_importRow(builder);
  799. }
  800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  802. protected override global::System.Type GetRowType() {
  803. return typeof(service_b_importRow);
  804. }
  805. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  806. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  807. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  808. base.OnRowChanged(e);
  809. if ((this.service_b_importRowChanged != null)) {
  810. this.service_b_importRowChanged(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  811. }
  812. }
  813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  815. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  816. base.OnRowChanging(e);
  817. if ((this.service_b_importRowChanging != null)) {
  818. this.service_b_importRowChanging(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  819. }
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  822. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  823. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  824. base.OnRowDeleted(e);
  825. if ((this.service_b_importRowDeleted != null)) {
  826. this.service_b_importRowDeleted(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  827. }
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  831. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  832. base.OnRowDeleting(e);
  833. if ((this.service_b_importRowDeleting != null)) {
  834. this.service_b_importRowDeleting(this, new service_b_importRowChangeEvent(((service_b_importRow)(e.Row)), e.Action));
  835. }
  836. }
  837. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  838. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  839. public void Removeservice_b_importRow(service_b_importRow row) {
  840. this.Rows.Remove(row);
  841. }
  842. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  843. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  844. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  845. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  846. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  847. _pozdniakova_isp43DataSet ds = new _pozdniakova_isp43DataSet();
  848. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  849. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  850. any1.MinOccurs = new decimal(0);
  851. any1.MaxOccurs = decimal.MaxValue;
  852. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  853. sequence.Items.Add(any1);
  854. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  855. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  856. any2.MinOccurs = new decimal(1);
  857. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  858. sequence.Items.Add(any2);
  859. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  860. attribute1.Name = "namespace";
  861. attribute1.FixedValue = ds.Namespace;
  862. type.Attributes.Add(attribute1);
  863. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  864. attribute2.Name = "tableTypeName";
  865. attribute2.FixedValue = "service_b_importDataTable";
  866. type.Attributes.Add(attribute2);
  867. type.Particle = sequence;
  868. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  869. if (xs.Contains(dsSchema.TargetNamespace)) {
  870. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  871. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  872. try {
  873. global::System.Xml.Schema.XmlSchema schema = null;
  874. dsSchema.Write(s1);
  875. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  876. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  877. s2.SetLength(0);
  878. schema.Write(s2);
  879. if ((s1.Length == s2.Length)) {
  880. s1.Position = 0;
  881. s2.Position = 0;
  882. for (; ((s1.Position != s1.Length)
  883. && (s1.ReadByte() == s2.ReadByte())); ) {
  884. ;
  885. }
  886. if ((s1.Position == s1.Length)) {
  887. return type;
  888. }
  889. }
  890. }
  891. }
  892. finally {
  893. if ((s1 != null)) {
  894. s1.Close();
  895. }
  896. if ((s2 != null)) {
  897. s2.Close();
  898. }
  899. }
  900. }
  901. xs.Add(dsSchema);
  902. return type;
  903. }
  904. }
  905. /// <summary>
  906. ///Represents the strongly named DataTable class.
  907. ///</summary>
  908. [global::System.Serializable()]
  909. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  910. public partial class serviceclient_b_importDataTable : global::System.Data.TypedTableBase<serviceclient_b_importRow> {
  911. private global::System.Data.DataColumn columncolumn1;
  912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  914. public serviceclient_b_importDataTable() {
  915. this.TableName = "serviceclient_b_import";
  916. this.BeginInit();
  917. this.InitClass();
  918. this.EndInit();
  919. }
  920. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  921. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  922. internal serviceclient_b_importDataTable(global::System.Data.DataTable table) {
  923. this.TableName = table.TableName;
  924. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  925. this.CaseSensitive = table.CaseSensitive;
  926. }
  927. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  928. this.Locale = table.Locale;
  929. }
  930. if ((table.Namespace != table.DataSet.Namespace)) {
  931. this.Namespace = table.Namespace;
  932. }
  933. this.Prefix = table.Prefix;
  934. this.MinimumCapacity = table.MinimumCapacity;
  935. }
  936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  938. protected serviceclient_b_importDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  939. base(info, context) {
  940. this.InitVars();
  941. }
  942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  944. public global::System.Data.DataColumn column1Column {
  945. get {
  946. return this.columncolumn1;
  947. }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  951. [global::System.ComponentModel.Browsable(false)]
  952. public int Count {
  953. get {
  954. return this.Rows.Count;
  955. }
  956. }
  957. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  958. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  959. public serviceclient_b_importRow this[int index] {
  960. get {
  961. return ((serviceclient_b_importRow)(this.Rows[index]));
  962. }
  963. }
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  965. public event serviceclient_b_importRowChangeEventHandler serviceclient_b_importRowChanging;
  966. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  967. public event serviceclient_b_importRowChangeEventHandler serviceclient_b_importRowChanged;
  968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  969. public event serviceclient_b_importRowChangeEventHandler serviceclient_b_importRowDeleting;
  970. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  971. public event serviceclient_b_importRowChangeEventHandler serviceclient_b_importRowDeleted;
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  974. public void Addserviceclient_b_importRow(serviceclient_b_importRow row) {
  975. this.Rows.Add(row);
  976. }
  977. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  979. public serviceclient_b_importRow Addserviceclient_b_importRow(string column1) {
  980. serviceclient_b_importRow rowserviceclient_b_importRow = ((serviceclient_b_importRow)(this.NewRow()));
  981. object[] columnValuesArray = new object[] {
  982. column1};
  983. rowserviceclient_b_importRow.ItemArray = columnValuesArray;
  984. this.Rows.Add(rowserviceclient_b_importRow);
  985. return rowserviceclient_b_importRow;
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  989. public override global::System.Data.DataTable Clone() {
  990. serviceclient_b_importDataTable cln = ((serviceclient_b_importDataTable)(base.Clone()));
  991. cln.InitVars();
  992. return cln;
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  996. protected override global::System.Data.DataTable CreateInstance() {
  997. return new serviceclient_b_importDataTable();
  998. }
  999. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1000. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1001. internal void InitVars() {
  1002. this.columncolumn1 = base.Columns["column1"];
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1006. private void InitClass() {
  1007. this.columncolumn1 = new global::System.Data.DataColumn("column1", typeof(string), null, global::System.Data.MappingType.Element);
  1008. base.Columns.Add(this.columncolumn1);
  1009. this.columncolumn1.AllowDBNull = false;
  1010. this.columncolumn1.MaxLength = 900;
  1011. }
  1012. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1013. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1014. public serviceclient_b_importRow Newserviceclient_b_importRow() {
  1015. return ((serviceclient_b_importRow)(this.NewRow()));
  1016. }
  1017. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1018. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1019. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1020. return new serviceclient_b_importRow(builder);
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1024. protected override global::System.Type GetRowType() {
  1025. return typeof(serviceclient_b_importRow);
  1026. }
  1027. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1028. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1029. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1030. base.OnRowChanged(e);
  1031. if ((this.serviceclient_b_importRowChanged != null)) {
  1032. this.serviceclient_b_importRowChanged(this, new serviceclient_b_importRowChangeEvent(((serviceclient_b_importRow)(e.Row)), e.Action));
  1033. }
  1034. }
  1035. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1036. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1037. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1038. base.OnRowChanging(e);
  1039. if ((this.serviceclient_b_importRowChanging != null)) {
  1040. this.serviceclient_b_importRowChanging(this, new serviceclient_b_importRowChangeEvent(((serviceclient_b_importRow)(e.Row)), e.Action));
  1041. }
  1042. }
  1043. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1044. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1045. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1046. base.OnRowDeleted(e);
  1047. if ((this.serviceclient_b_importRowDeleted != null)) {
  1048. this.serviceclient_b_importRowDeleted(this, new serviceclient_b_importRowChangeEvent(((serviceclient_b_importRow)(e.Row)), e.Action));
  1049. }
  1050. }
  1051. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1052. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1053. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1054. base.OnRowDeleting(e);
  1055. if ((this.serviceclient_b_importRowDeleting != null)) {
  1056. this.serviceclient_b_importRowDeleting(this, new serviceclient_b_importRowChangeEvent(((serviceclient_b_importRow)(e.Row)), e.Action));
  1057. }
  1058. }
  1059. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1060. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1061. public void Removeserviceclient_b_importRow(serviceclient_b_importRow row) {
  1062. this.Rows.Remove(row);
  1063. }
  1064. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1065. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1066. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1067. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1068. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1069. _pozdniakova_isp43DataSet ds = new _pozdniakova_isp43DataSet();
  1070. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1071. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1072. any1.MinOccurs = new decimal(0);
  1073. any1.MaxOccurs = decimal.MaxValue;
  1074. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1075. sequence.Items.Add(any1);
  1076. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1077. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1078. any2.MinOccurs = new decimal(1);
  1079. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1080. sequence.Items.Add(any2);
  1081. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1082. attribute1.Name = "namespace";
  1083. attribute1.FixedValue = ds.Namespace;
  1084. type.Attributes.Add(attribute1);
  1085. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1086. attribute2.Name = "tableTypeName";
  1087. attribute2.FixedValue = "serviceclient_b_importDataTable";
  1088. type.Attributes.Add(attribute2);
  1089. type.Particle = sequence;
  1090. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1091. if (xs.Contains(dsSchema.TargetNamespace)) {
  1092. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1093. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1094. try {
  1095. global::System.Xml.Schema.XmlSchema schema = null;
  1096. dsSchema.Write(s1);
  1097. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1098. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1099. s2.SetLength(0);
  1100. schema.Write(s2);
  1101. if ((s1.Length == s2.Length)) {
  1102. s1.Position = 0;
  1103. s2.Position = 0;
  1104. for (; ((s1.Position != s1.Length)
  1105. && (s1.ReadByte() == s2.ReadByte())); ) {
  1106. ;
  1107. }
  1108. if ((s1.Position == s1.Length)) {
  1109. return type;
  1110. }
  1111. }
  1112. }
  1113. }
  1114. finally {
  1115. if ((s1 != null)) {
  1116. s1.Close();
  1117. }
  1118. if ((s2 != null)) {
  1119. s2.Close();
  1120. }
  1121. }
  1122. }
  1123. xs.Add(dsSchema);
  1124. return type;
  1125. }
  1126. }
  1127. /// <summary>
  1128. ///Represents strongly named DataRow class.
  1129. ///</summary>
  1130. public partial class client_b_importRow : global::System.Data.DataRow {
  1131. private client_b_importDataTable tableclient_b_import;
  1132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1133. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1134. internal client_b_importRow(global::System.Data.DataRowBuilder rb) :
  1135. base(rb) {
  1136. this.tableclient_b_import = ((client_b_importDataTable)(this.Table));
  1137. }
  1138. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1139. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1140. public string Фамилия {
  1141. get {
  1142. return ((string)(this[this.tableclient_b_import.ФамилияColumn]));
  1143. }
  1144. set {
  1145. this[this.tableclient_b_import.ФамилияColumn] = value;
  1146. }
  1147. }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1150. public string Имя {
  1151. get {
  1152. try {
  1153. return ((string)(this[this.tableclient_b_import.ИмяColumn]));
  1154. }
  1155. catch (global::System.InvalidCastException e) {
  1156. throw new global::System.Data.StrongTypingException("Значение для столбца \'Имя\' в таблице \'client_b_import\' равно DBNull.", e);
  1157. }
  1158. }
  1159. set {
  1160. this[this.tableclient_b_import.ИмяColumn] = value;
  1161. }
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1165. public string Отчество {
  1166. get {
  1167. try {
  1168. return ((string)(this[this.tableclient_b_import.ОтчествоColumn]));
  1169. }
  1170. catch (global::System.InvalidCastException e) {
  1171. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'client_b_import\' равно DBNull.", e);
  1172. }
  1173. }
  1174. set {
  1175. this[this.tableclient_b_import.ОтчествоColumn] = value;
  1176. }
  1177. }
  1178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1179. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1180. public string Пол {
  1181. get {
  1182. return ((string)(this[this.tableclient_b_import.ПолColumn]));
  1183. }
  1184. set {
  1185. this[this.tableclient_b_import.ПолColumn] = value;
  1186. }
  1187. }
  1188. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1189. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1190. public string Телефон {
  1191. get {
  1192. return ((string)(this[this.tableclient_b_import.ТелефонColumn]));
  1193. }
  1194. set {
  1195. this[this.tableclient_b_import.ТелефонColumn] = value;
  1196. }
  1197. }
  1198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1200. public System.DateTime Дата_рождения {
  1201. get {
  1202. return ((global::System.DateTime)(this[this.tableclient_b_import.Дата_рожденияColumn]));
  1203. }
  1204. set {
  1205. this[this.tableclient_b_import.Дата_рожденияColumn] = value;
  1206. }
  1207. }
  1208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1210. public string Email {
  1211. get {
  1212. return ((string)(this[this.tableclient_b_import.EmailColumn]));
  1213. }
  1214. set {
  1215. this[this.tableclient_b_import.EmailColumn] = value;
  1216. }
  1217. }
  1218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1219. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1220. public System.DateTime Дата_регистрации {
  1221. get {
  1222. return ((global::System.DateTime)(this[this.tableclient_b_import.Дата_регистрацииColumn]));
  1223. }
  1224. set {
  1225. this[this.tableclient_b_import.Дата_регистрацииColumn] = value;
  1226. }
  1227. }
  1228. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1229. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1230. public bool IsИмяNull() {
  1231. return this.IsNull(this.tableclient_b_import.ИмяColumn);
  1232. }
  1233. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1234. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1235. public void SetИмяNull() {
  1236. this[this.tableclient_b_import.ИмяColumn] = global::System.Convert.DBNull;
  1237. }
  1238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1239. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1240. public bool IsОтчествоNull() {
  1241. return this.IsNull(this.tableclient_b_import.ОтчествоColumn);
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1245. public void SetОтчествоNull() {
  1246. this[this.tableclient_b_import.ОтчествоColumn] = global::System.Convert.DBNull;
  1247. }
  1248. }
  1249. /// <summary>
  1250. ///Represents strongly named DataRow class.
  1251. ///</summary>
  1252. public partial class service_b_importRow : global::System.Data.DataRow {
  1253. private service_b_importDataTable tableservice_b_import;
  1254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1256. internal service_b_importRow(global::System.Data.DataRowBuilder rb) :
  1257. base(rb) {
  1258. this.tableservice_b_import = ((service_b_importDataTable)(this.Table));
  1259. }
  1260. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1261. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1262. public string Наименование_услуги {
  1263. get {
  1264. return ((string)(this[this.tableservice_b_import.Наименование_услугиColumn]));
  1265. }
  1266. set {
  1267. this[this.tableservice_b_import.Наименование_услугиColumn] = value;
  1268. }
  1269. }
  1270. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1271. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1272. public string Главное_изображение {
  1273. get {
  1274. return ((string)(this[this.tableservice_b_import.Главное_изображениеColumn]));
  1275. }
  1276. set {
  1277. this[this.tableservice_b_import.Главное_изображениеColumn] = value;
  1278. }
  1279. }
  1280. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1281. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1282. public string Длительность {
  1283. get {
  1284. return ((string)(this[this.tableservice_b_import.ДлительностьColumn]));
  1285. }
  1286. set {
  1287. this[this.tableservice_b_import.ДлительностьColumn] = value;
  1288. }
  1289. }
  1290. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1291. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1292. public string Стоимость {
  1293. get {
  1294. return ((string)(this[this.tableservice_b_import.СтоимостьColumn]));
  1295. }
  1296. set {
  1297. this[this.tableservice_b_import.СтоимостьColumn] = value;
  1298. }
  1299. }
  1300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1302. public string Действующая_скидка {
  1303. get {
  1304. return ((string)(this[this.tableservice_b_import.Действующая_скидкаColumn]));
  1305. }
  1306. set {
  1307. this[this.tableservice_b_import.Действующая_скидкаColumn] = value;
  1308. }
  1309. }
  1310. }
  1311. /// <summary>
  1312. ///Represents strongly named DataRow class.
  1313. ///</summary>
  1314. public partial class serviceclient_b_importRow : global::System.Data.DataRow {
  1315. private serviceclient_b_importDataTable tableserviceclient_b_import;
  1316. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1317. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1318. internal serviceclient_b_importRow(global::System.Data.DataRowBuilder rb) :
  1319. base(rb) {
  1320. this.tableserviceclient_b_import = ((serviceclient_b_importDataTable)(this.Table));
  1321. }
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1324. public string column1 {
  1325. get {
  1326. return ((string)(this[this.tableserviceclient_b_import.column1Column]));
  1327. }
  1328. set {
  1329. this[this.tableserviceclient_b_import.column1Column] = value;
  1330. }
  1331. }
  1332. }
  1333. /// <summary>
  1334. ///Row event argument class
  1335. ///</summary>
  1336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1337. public class client_b_importRowChangeEvent : global::System.EventArgs {
  1338. private client_b_importRow eventRow;
  1339. private global::System.Data.DataRowAction eventAction;
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public client_b_importRowChangeEvent(client_b_importRow row, global::System.Data.DataRowAction action) {
  1343. this.eventRow = row;
  1344. this.eventAction = action;
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. public client_b_importRow Row {
  1349. get {
  1350. return this.eventRow;
  1351. }
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. public global::System.Data.DataRowAction Action {
  1356. get {
  1357. return this.eventAction;
  1358. }
  1359. }
  1360. }
  1361. /// <summary>
  1362. ///Row event argument class
  1363. ///</summary>
  1364. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1365. public class service_b_importRowChangeEvent : global::System.EventArgs {
  1366. private service_b_importRow eventRow;
  1367. private global::System.Data.DataRowAction eventAction;
  1368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1370. public service_b_importRowChangeEvent(service_b_importRow row, global::System.Data.DataRowAction action) {
  1371. this.eventRow = row;
  1372. this.eventAction = action;
  1373. }
  1374. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1375. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1376. public service_b_importRow Row {
  1377. get {
  1378. return this.eventRow;
  1379. }
  1380. }
  1381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1383. public global::System.Data.DataRowAction Action {
  1384. get {
  1385. return this.eventAction;
  1386. }
  1387. }
  1388. }
  1389. /// <summary>
  1390. ///Row event argument class
  1391. ///</summary>
  1392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1393. public class serviceclient_b_importRowChangeEvent : global::System.EventArgs {
  1394. private serviceclient_b_importRow eventRow;
  1395. private global::System.Data.DataRowAction eventAction;
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. public serviceclient_b_importRowChangeEvent(serviceclient_b_importRow row, global::System.Data.DataRowAction action) {
  1399. this.eventRow = row;
  1400. this.eventAction = action;
  1401. }
  1402. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1403. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1404. public serviceclient_b_importRow Row {
  1405. get {
  1406. return this.eventRow;
  1407. }
  1408. }
  1409. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1410. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1411. public global::System.Data.DataRowAction Action {
  1412. get {
  1413. return this.eventAction;
  1414. }
  1415. }
  1416. }
  1417. }
  1418. }
  1419. namespace pozdniacova_eks._pozdniakova_isp43DataSetTableAdapters {
  1420. /// <summary>
  1421. ///Represents the connection and commands used to retrieve and save data.
  1422. ///</summary>
  1423. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1424. [global::System.ComponentModel.ToolboxItem(true)]
  1425. [global::System.ComponentModel.DataObjectAttribute(true)]
  1426. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1427. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1429. public partial class client_b_importTableAdapter : global::System.ComponentModel.Component {
  1430. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1431. private global::System.Data.SqlClient.SqlConnection _connection;
  1432. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1433. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1434. private bool _clearBeforeFill;
  1435. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1436. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1437. public client_b_importTableAdapter() {
  1438. this.ClearBeforeFill = true;
  1439. }
  1440. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1441. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1442. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1443. get {
  1444. if ((this._adapter == null)) {
  1445. this.InitAdapter();
  1446. }
  1447. return this._adapter;
  1448. }
  1449. }
  1450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1452. internal global::System.Data.SqlClient.SqlConnection Connection {
  1453. get {
  1454. if ((this._connection == null)) {
  1455. this.InitConnection();
  1456. }
  1457. return this._connection;
  1458. }
  1459. set {
  1460. this._connection = value;
  1461. if ((this.Adapter.InsertCommand != null)) {
  1462. this.Adapter.InsertCommand.Connection = value;
  1463. }
  1464. if ((this.Adapter.DeleteCommand != null)) {
  1465. this.Adapter.DeleteCommand.Connection = value;
  1466. }
  1467. if ((this.Adapter.UpdateCommand != null)) {
  1468. this.Adapter.UpdateCommand.Connection = value;
  1469. }
  1470. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1471. if ((this.CommandCollection[i] != null)) {
  1472. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1473. }
  1474. }
  1475. }
  1476. }
  1477. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1478. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1479. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1480. get {
  1481. return this._transaction;
  1482. }
  1483. set {
  1484. this._transaction = value;
  1485. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1486. this.CommandCollection[i].Transaction = this._transaction;
  1487. }
  1488. if (((this.Adapter != null)
  1489. && (this.Adapter.DeleteCommand != null))) {
  1490. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1491. }
  1492. if (((this.Adapter != null)
  1493. && (this.Adapter.InsertCommand != null))) {
  1494. this.Adapter.InsertCommand.Transaction = this._transaction;
  1495. }
  1496. if (((this.Adapter != null)
  1497. && (this.Adapter.UpdateCommand != null))) {
  1498. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1499. }
  1500. }
  1501. }
  1502. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1504. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1505. get {
  1506. if ((this._commandCollection == null)) {
  1507. this.InitCommandCollection();
  1508. }
  1509. return this._commandCollection;
  1510. }
  1511. }
  1512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1514. public bool ClearBeforeFill {
  1515. get {
  1516. return this._clearBeforeFill;
  1517. }
  1518. set {
  1519. this._clearBeforeFill = value;
  1520. }
  1521. }
  1522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1524. private void InitAdapter() {
  1525. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1526. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1527. tableMapping.SourceTable = "Table";
  1528. tableMapping.DataSetTable = "client_b_import";
  1529. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  1530. tableMapping.ColumnMappings.Add("Имя", "Имя");
  1531. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  1532. tableMapping.ColumnMappings.Add("Пол", "Пол");
  1533. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  1534. tableMapping.ColumnMappings.Add("Дата_рождения", "Дата_рождения");
  1535. tableMapping.ColumnMappings.Add("Email", "Email");
  1536. tableMapping.ColumnMappings.Add("Дата_регистрации", "Дата_регистрации");
  1537. this._adapter.TableMappings.Add(tableMapping);
  1538. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1539. this._adapter.InsertCommand.Connection = this.Connection;
  1540. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[client_b_import] ([Фамилия], [Имя], [Отчество], [Пол], [Телефо" +
  1541. "н], [Дата_рождения], [Email], [Дата_регистрации]) VALUES (@Фамилия, @Имя, @Отчес" +
  1542. "тво, @Пол, @Телефон, @Дата_рождения, @Email, @Дата_регистрации)";
  1543. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1544. 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, "", "", ""));
  1545. 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, "", "", ""));
  1546. 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, "", "", ""));
  1547. 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, "", "", ""));
  1548. 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, "", "", ""));
  1549. 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, "", "", ""));
  1550. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Email", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Email", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  1551. 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, "", "", ""));
  1552. }
  1553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1554. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1555. private void InitConnection() {
  1556. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1557. this._connection.ConnectionString = global::pozdniacova_eks.Properties.Settings.Default.pozdniakova_isp43ConnectionString;
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. private void InitCommandCollection() {
  1562. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1563. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1564. this._commandCollection[0].Connection = this.Connection;
  1565. this._commandCollection[0].CommandText = "SELECT Фамилия, Имя, Отчество, Пол, Телефон, Дата_рождения, Email, Дата_регистрац" +
  1566. "ии FROM dbo.client_b_import";
  1567. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1572. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1573. public virtual int Fill(_pozdniakova_isp43DataSet.client_b_importDataTable dataTable) {
  1574. this.Adapter.SelectCommand = this.CommandCollection[0];
  1575. if ((this.ClearBeforeFill == true)) {
  1576. dataTable.Clear();
  1577. }
  1578. int returnValue = this.Adapter.Fill(dataTable);
  1579. return returnValue;
  1580. }
  1581. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1582. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1583. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1584. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1585. public virtual _pozdniakova_isp43DataSet.client_b_importDataTable GetData() {
  1586. this.Adapter.SelectCommand = this.CommandCollection[0];
  1587. _pozdniakova_isp43DataSet.client_b_importDataTable dataTable = new _pozdniakova_isp43DataSet.client_b_importDataTable();
  1588. this.Adapter.Fill(dataTable);
  1589. return dataTable;
  1590. }
  1591. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1592. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1593. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1594. public virtual int Update(_pozdniakova_isp43DataSet.client_b_importDataTable dataTable) {
  1595. return this.Adapter.Update(dataTable);
  1596. }
  1597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1599. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1600. public virtual int Update(_pozdniakova_isp43DataSet dataSet) {
  1601. return this.Adapter.Update(dataSet, "client_b_import");
  1602. }
  1603. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1604. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1605. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1606. public virtual int Update(global::System.Data.DataRow dataRow) {
  1607. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1608. dataRow});
  1609. }
  1610. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1612. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1613. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1614. return this.Adapter.Update(dataRows);
  1615. }
  1616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1617. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1618. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1619. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1620. public virtual int Insert(string Фамилия, string Имя, string Отчество, string Пол, string Телефон, System.DateTime Дата_рождения, string Email, System.DateTime Дата_регистрации) {
  1621. if ((Фамилия == null)) {
  1622. throw new global::System.ArgumentNullException("Фамилия");
  1623. }
  1624. else {
  1625. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  1626. }
  1627. if ((Имя == null)) {
  1628. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  1629. }
  1630. else {
  1631. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  1632. }
  1633. if ((Отчество == null)) {
  1634. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  1635. }
  1636. else {
  1637. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  1638. }
  1639. if ((Пол == null)) {
  1640. throw new global::System.ArgumentNullException("Пол");
  1641. }
  1642. else {
  1643. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Пол));
  1644. }
  1645. if ((Телефон == null)) {
  1646. throw new global::System.ArgumentNullException("Телефон");
  1647. }
  1648. else {
  1649. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Телефон));
  1650. }
  1651. this.Adapter.InsertCommand.Parameters[5].Value = ((System.DateTime)(Дата_рождения));
  1652. if ((Email == null)) {
  1653. throw new global::System.ArgumentNullException("Email");
  1654. }
  1655. else {
  1656. this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Email));
  1657. }
  1658. this.Adapter.InsertCommand.Parameters[7].Value = ((System.DateTime)(Дата_регистрации));
  1659. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1660. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1661. != global::System.Data.ConnectionState.Open)) {
  1662. this.Adapter.InsertCommand.Connection.Open();
  1663. }
  1664. try {
  1665. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1666. return returnValue;
  1667. }
  1668. finally {
  1669. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1670. this.Adapter.InsertCommand.Connection.Close();
  1671. }
  1672. }
  1673. }
  1674. }
  1675. /// <summary>
  1676. ///Represents the connection and commands used to retrieve and save data.
  1677. ///</summary>
  1678. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1679. [global::System.ComponentModel.ToolboxItem(true)]
  1680. [global::System.ComponentModel.DataObjectAttribute(true)]
  1681. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1682. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1683. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1684. public partial class service_b_importTableAdapter : global::System.ComponentModel.Component {
  1685. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1686. private global::System.Data.SqlClient.SqlConnection _connection;
  1687. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1688. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1689. private bool _clearBeforeFill;
  1690. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1691. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1692. public service_b_importTableAdapter() {
  1693. this.ClearBeforeFill = true;
  1694. }
  1695. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1696. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1697. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1698. get {
  1699. if ((this._adapter == null)) {
  1700. this.InitAdapter();
  1701. }
  1702. return this._adapter;
  1703. }
  1704. }
  1705. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1706. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1707. internal global::System.Data.SqlClient.SqlConnection Connection {
  1708. get {
  1709. if ((this._connection == null)) {
  1710. this.InitConnection();
  1711. }
  1712. return this._connection;
  1713. }
  1714. set {
  1715. this._connection = value;
  1716. if ((this.Adapter.InsertCommand != null)) {
  1717. this.Adapter.InsertCommand.Connection = value;
  1718. }
  1719. if ((this.Adapter.DeleteCommand != null)) {
  1720. this.Adapter.DeleteCommand.Connection = value;
  1721. }
  1722. if ((this.Adapter.UpdateCommand != null)) {
  1723. this.Adapter.UpdateCommand.Connection = value;
  1724. }
  1725. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1726. if ((this.CommandCollection[i] != null)) {
  1727. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1728. }
  1729. }
  1730. }
  1731. }
  1732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1733. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1734. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1735. get {
  1736. return this._transaction;
  1737. }
  1738. set {
  1739. this._transaction = value;
  1740. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1741. this.CommandCollection[i].Transaction = this._transaction;
  1742. }
  1743. if (((this.Adapter != null)
  1744. && (this.Adapter.DeleteCommand != null))) {
  1745. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1746. }
  1747. if (((this.Adapter != null)
  1748. && (this.Adapter.InsertCommand != null))) {
  1749. this.Adapter.InsertCommand.Transaction = this._transaction;
  1750. }
  1751. if (((this.Adapter != null)
  1752. && (this.Adapter.UpdateCommand != null))) {
  1753. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1754. }
  1755. }
  1756. }
  1757. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1758. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1759. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  1760. get {
  1761. if ((this._commandCollection == null)) {
  1762. this.InitCommandCollection();
  1763. }
  1764. return this._commandCollection;
  1765. }
  1766. }
  1767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1769. public bool ClearBeforeFill {
  1770. get {
  1771. return this._clearBeforeFill;
  1772. }
  1773. set {
  1774. this._clearBeforeFill = value;
  1775. }
  1776. }
  1777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1779. private void InitAdapter() {
  1780. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  1781. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  1782. tableMapping.SourceTable = "Table";
  1783. tableMapping.DataSetTable = "service_b_import";
  1784. tableMapping.ColumnMappings.Add("Наименование_услуги", "Наименование_услуги");
  1785. tableMapping.ColumnMappings.Add("Главное_изображение", "Главное_изображение");
  1786. tableMapping.ColumnMappings.Add("Длительность", "Длительность");
  1787. tableMapping.ColumnMappings.Add("Стоимость", "Стоимость");
  1788. tableMapping.ColumnMappings.Add("Действующая_скидка", "Действующая_скидка");
  1789. this._adapter.TableMappings.Add(tableMapping);
  1790. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  1791. this._adapter.InsertCommand.Connection = this.Connection;
  1792. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[service_b_import] ([Наименование_услуги], [Главное_изображение" +
  1793. "], [Длительность], [Стоимость], [Действующая_скидка]) VALUES (@Наименование_услу" +
  1794. "ги, @Главное_изображение, @Длительность, @Стоимость, @Действующая_скидка)";
  1795. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  1796. 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, "", "", ""));
  1797. 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, "", "", ""));
  1798. 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, "", "", ""));
  1799. 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, "", "", ""));
  1800. 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, "", "", ""));
  1801. }
  1802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1804. private void InitConnection() {
  1805. this._connection = new global::System.Data.SqlClient.SqlConnection();
  1806. this._connection.ConnectionString = global::pozdniacova_eks.Properties.Settings.Default.pozdniakova_isp43ConnectionString;
  1807. }
  1808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1810. private void InitCommandCollection() {
  1811. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  1812. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  1813. this._commandCollection[0].Connection = this.Connection;
  1814. this._commandCollection[0].CommandText = "SELECT Наименование_услуги, Главное_изображение, Длительность, Стоимость, Действу" +
  1815. "ющая_скидка FROM dbo.service_b_import";
  1816. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  1817. }
  1818. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1819. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1820. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1821. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  1822. public virtual int Fill(_pozdniakova_isp43DataSet.service_b_importDataTable dataTable) {
  1823. this.Adapter.SelectCommand = this.CommandCollection[0];
  1824. if ((this.ClearBeforeFill == true)) {
  1825. dataTable.Clear();
  1826. }
  1827. int returnValue = this.Adapter.Fill(dataTable);
  1828. return returnValue;
  1829. }
  1830. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1831. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1832. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1833. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  1834. public virtual _pozdniakova_isp43DataSet.service_b_importDataTable GetData() {
  1835. this.Adapter.SelectCommand = this.CommandCollection[0];
  1836. _pozdniakova_isp43DataSet.service_b_importDataTable dataTable = new _pozdniakova_isp43DataSet.service_b_importDataTable();
  1837. this.Adapter.Fill(dataTable);
  1838. return dataTable;
  1839. }
  1840. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1841. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1842. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1843. public virtual int Update(_pozdniakova_isp43DataSet.service_b_importDataTable dataTable) {
  1844. return this.Adapter.Update(dataTable);
  1845. }
  1846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1847. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1848. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1849. public virtual int Update(_pozdniakova_isp43DataSet dataSet) {
  1850. return this.Adapter.Update(dataSet, "service_b_import");
  1851. }
  1852. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1853. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1854. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1855. public virtual int Update(global::System.Data.DataRow dataRow) {
  1856. return this.Adapter.Update(new global::System.Data.DataRow[] {
  1857. dataRow});
  1858. }
  1859. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1860. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1861. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1862. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  1863. return this.Adapter.Update(dataRows);
  1864. }
  1865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1868. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  1869. public virtual int Insert(string Наименование_услуги, string Главное_изображение, string Длительность, string Стоимость, string Действующая_скидка) {
  1870. if ((Наименование_услуги == null)) {
  1871. throw new global::System.ArgumentNullException("Наименование_услуги");
  1872. }
  1873. else {
  1874. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Наименование_услуги));
  1875. }
  1876. if ((Главное_изображение == null)) {
  1877. throw new global::System.ArgumentNullException("Главное_изображение");
  1878. }
  1879. else {
  1880. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Главное_изображение));
  1881. }
  1882. if ((Длительность == null)) {
  1883. throw new global::System.ArgumentNullException("Длительность");
  1884. }
  1885. else {
  1886. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Длительность));
  1887. }
  1888. if ((Стоимость == null)) {
  1889. throw new global::System.ArgumentNullException("Стоимость");
  1890. }
  1891. else {
  1892. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Стоимость));
  1893. }
  1894. if ((Действующая_скидка == null)) {
  1895. throw new global::System.ArgumentNullException("Действующая_скидка");
  1896. }
  1897. else {
  1898. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Действующая_скидка));
  1899. }
  1900. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  1901. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  1902. != global::System.Data.ConnectionState.Open)) {
  1903. this.Adapter.InsertCommand.Connection.Open();
  1904. }
  1905. try {
  1906. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  1907. return returnValue;
  1908. }
  1909. finally {
  1910. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  1911. this.Adapter.InsertCommand.Connection.Close();
  1912. }
  1913. }
  1914. }
  1915. }
  1916. /// <summary>
  1917. ///Represents the connection and commands used to retrieve and save data.
  1918. ///</summary>
  1919. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1920. [global::System.ComponentModel.ToolboxItem(true)]
  1921. [global::System.ComponentModel.DataObjectAttribute(true)]
  1922. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1923. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1924. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1925. public partial class serviceclient_b_importTableAdapter : global::System.ComponentModel.Component {
  1926. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1927. private global::System.Data.SqlClient.SqlConnection _connection;
  1928. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1929. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1930. private bool _clearBeforeFill;
  1931. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1932. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1933. public serviceclient_b_importTableAdapter() {
  1934. this.ClearBeforeFill = true;
  1935. }
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1939. get {
  1940. if ((this._adapter == null)) {
  1941. this.InitAdapter();
  1942. }
  1943. return this._adapter;
  1944. }
  1945. }
  1946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1947. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1948. internal global::System.Data.SqlClient.SqlConnection Connection {
  1949. get {
  1950. if ((this._connection == null)) {
  1951. this.InitConnection();
  1952. }
  1953. return this._connection;
  1954. }
  1955. set {
  1956. this._connection = value;
  1957. if ((this.Adapter.InsertCommand != null)) {
  1958. this.Adapter.InsertCommand.Connection = value;
  1959. }
  1960. if ((this.Adapter.DeleteCommand != null)) {
  1961. this.Adapter.DeleteCommand.Connection = value;
  1962. }
  1963. if ((this.Adapter.UpdateCommand != null)) {
  1964. this.Adapter.UpdateCommand.Connection = value;
  1965. }
  1966. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1967. if ((this.CommandCollection[i] != null)) {
  1968. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1969. }
  1970. }
  1971. }
  1972. }
  1973. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1974. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1975. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1976. get {
  1977. return this._transaction;
  1978. }
  1979. set {
  1980. this._transaction = value;
  1981. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1982. this.CommandCollection[i].Transaction = this._transaction;
  1983. }
  1984. if (((this.Adapter != null)
  1985. && (this.Adapter.DeleteCommand != null))) {
  1986. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1987. }
  1988. if (((this.Adapter != null)
  1989. && (this.Adapter.InsertCommand != null))) {
  1990. this.Adapter.InsertCommand.Transaction = this._transaction;
  1991. }
  1992. if (((this.Adapter != null)
  1993. && (this.Adapter.UpdateCommand != null))) {
  1994. this.Adapter.UpdateCommand.Transaction = this._transaction;
  1995. }
  1996. }
  1997. }
  1998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2000. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2001. get {
  2002. if ((this._commandCollection == null)) {
  2003. this.InitCommandCollection();
  2004. }
  2005. return this._commandCollection;
  2006. }
  2007. }
  2008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2010. public bool ClearBeforeFill {
  2011. get {
  2012. return this._clearBeforeFill;
  2013. }
  2014. set {
  2015. this._clearBeforeFill = value;
  2016. }
  2017. }
  2018. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2019. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2020. private void InitAdapter() {
  2021. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2022. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2023. tableMapping.SourceTable = "Table";
  2024. tableMapping.DataSetTable = "serviceclient_b_import";
  2025. tableMapping.ColumnMappings.Add("column1", "column1");
  2026. this._adapter.TableMappings.Add(tableMapping);
  2027. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2028. this._adapter.InsertCommand.Connection = this.Connection;
  2029. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[serviceclient_b_import] ([column1]) VALUES (@column1)";
  2030. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2031. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@column1", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "column1", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2032. }
  2033. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2034. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2035. private void InitConnection() {
  2036. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2037. this._connection.ConnectionString = global::pozdniacova_eks.Properties.Settings.Default.pozdniakova_isp43ConnectionString;
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. private void InitCommandCollection() {
  2042. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2043. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2044. this._commandCollection[0].Connection = this.Connection;
  2045. this._commandCollection[0].CommandText = "SELECT column1 FROM dbo.serviceclient_b_import";
  2046. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2047. }
  2048. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2050. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2051. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2052. public virtual int Fill(_pozdniakova_isp43DataSet.serviceclient_b_importDataTable dataTable) {
  2053. this.Adapter.SelectCommand = this.CommandCollection[0];
  2054. if ((this.ClearBeforeFill == true)) {
  2055. dataTable.Clear();
  2056. }
  2057. int returnValue = this.Adapter.Fill(dataTable);
  2058. return returnValue;
  2059. }
  2060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2062. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2063. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2064. public virtual _pozdniakova_isp43DataSet.serviceclient_b_importDataTable GetData() {
  2065. this.Adapter.SelectCommand = this.CommandCollection[0];
  2066. _pozdniakova_isp43DataSet.serviceclient_b_importDataTable dataTable = new _pozdniakova_isp43DataSet.serviceclient_b_importDataTable();
  2067. this.Adapter.Fill(dataTable);
  2068. return dataTable;
  2069. }
  2070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2072. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2073. public virtual int Update(_pozdniakova_isp43DataSet.serviceclient_b_importDataTable dataTable) {
  2074. return this.Adapter.Update(dataTable);
  2075. }
  2076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2078. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2079. public virtual int Update(_pozdniakova_isp43DataSet dataSet) {
  2080. return this.Adapter.Update(dataSet, "serviceclient_b_import");
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2085. public virtual int Update(global::System.Data.DataRow dataRow) {
  2086. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2087. dataRow});
  2088. }
  2089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2091. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2092. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2093. return this.Adapter.Update(dataRows);
  2094. }
  2095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2097. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2098. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2099. public virtual int Insert(string column1) {
  2100. if ((column1 == null)) {
  2101. throw new global::System.ArgumentNullException("column1");
  2102. }
  2103. else {
  2104. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(column1));
  2105. }
  2106. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2107. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2108. != global::System.Data.ConnectionState.Open)) {
  2109. this.Adapter.InsertCommand.Connection.Open();
  2110. }
  2111. try {
  2112. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2113. return returnValue;
  2114. }
  2115. finally {
  2116. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2117. this.Adapter.InsertCommand.Connection.Close();
  2118. }
  2119. }
  2120. }
  2121. }
  2122. /// <summary>
  2123. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  2124. ///</summary>
  2125. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2126. [global::System.ComponentModel.ToolboxItem(true)]
  2127. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  2128. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  2130. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  2131. private UpdateOrderOption _updateOrder;
  2132. private client_b_importTableAdapter _client_b_importTableAdapter;
  2133. private service_b_importTableAdapter _service_b_importTableAdapter;
  2134. private serviceclient_b_importTableAdapter _serviceclient_b_importTableAdapter;
  2135. private bool _backupDataSetBeforeUpdate;
  2136. private global::System.Data.IDbConnection _connection;
  2137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2139. public UpdateOrderOption UpdateOrder {
  2140. get {
  2141. return this._updateOrder;
  2142. }
  2143. set {
  2144. this._updateOrder = value;
  2145. }
  2146. }
  2147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2149. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2150. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2151. "a", "System.Drawing.Design.UITypeEditor")]
  2152. public client_b_importTableAdapter client_b_importTableAdapter {
  2153. get {
  2154. return this._client_b_importTableAdapter;
  2155. }
  2156. set {
  2157. this._client_b_importTableAdapter = value;
  2158. }
  2159. }
  2160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2162. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2163. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2164. "a", "System.Drawing.Design.UITypeEditor")]
  2165. public service_b_importTableAdapter service_b_importTableAdapter {
  2166. get {
  2167. return this._service_b_importTableAdapter;
  2168. }
  2169. set {
  2170. this._service_b_importTableAdapter = value;
  2171. }
  2172. }
  2173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2175. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  2176. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  2177. "a", "System.Drawing.Design.UITypeEditor")]
  2178. public serviceclient_b_importTableAdapter serviceclient_b_importTableAdapter {
  2179. get {
  2180. return this._serviceclient_b_importTableAdapter;
  2181. }
  2182. set {
  2183. this._serviceclient_b_importTableAdapter = value;
  2184. }
  2185. }
  2186. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2187. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2188. public bool BackupDataSetBeforeUpdate {
  2189. get {
  2190. return this._backupDataSetBeforeUpdate;
  2191. }
  2192. set {
  2193. this._backupDataSetBeforeUpdate = value;
  2194. }
  2195. }
  2196. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2197. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2198. [global::System.ComponentModel.Browsable(false)]
  2199. public global::System.Data.IDbConnection Connection {
  2200. get {
  2201. if ((this._connection != null)) {
  2202. return this._connection;
  2203. }
  2204. if (((this._client_b_importTableAdapter != null)
  2205. && (this._client_b_importTableAdapter.Connection != null))) {
  2206. return this._client_b_importTableAdapter.Connection;
  2207. }
  2208. if (((this._service_b_importTableAdapter != null)
  2209. && (this._service_b_importTableAdapter.Connection != null))) {
  2210. return this._service_b_importTableAdapter.Connection;
  2211. }
  2212. if (((this._serviceclient_b_importTableAdapter != null)
  2213. && (this._serviceclient_b_importTableAdapter.Connection != null))) {
  2214. return this._serviceclient_b_importTableAdapter.Connection;
  2215. }
  2216. return null;
  2217. }
  2218. set {
  2219. this._connection = value;
  2220. }
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. [global::System.ComponentModel.Browsable(false)]
  2225. public int TableAdapterInstanceCount {
  2226. get {
  2227. int count = 0;
  2228. if ((this._client_b_importTableAdapter != null)) {
  2229. count = (count + 1);
  2230. }
  2231. if ((this._service_b_importTableAdapter != null)) {
  2232. count = (count + 1);
  2233. }
  2234. if ((this._serviceclient_b_importTableAdapter != null)) {
  2235. count = (count + 1);
  2236. }
  2237. return count;
  2238. }
  2239. }
  2240. /// <summary>
  2241. ///Update rows in top-down order.
  2242. ///</summary>
  2243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2244. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2245. private int UpdateUpdatedRows(_pozdniakova_isp43DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2246. int result = 0;
  2247. if ((this._client_b_importTableAdapter != null)) {
  2248. global::System.Data.DataRow[] updatedRows = dataSet.client_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2249. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2250. if (((updatedRows != null)
  2251. && (0 < updatedRows.Length))) {
  2252. result = (result + this._client_b_importTableAdapter.Update(updatedRows));
  2253. allChangedRows.AddRange(updatedRows);
  2254. }
  2255. }
  2256. if ((this._service_b_importTableAdapter != null)) {
  2257. global::System.Data.DataRow[] updatedRows = dataSet.service_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2258. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2259. if (((updatedRows != null)
  2260. && (0 < updatedRows.Length))) {
  2261. result = (result + this._service_b_importTableAdapter.Update(updatedRows));
  2262. allChangedRows.AddRange(updatedRows);
  2263. }
  2264. }
  2265. if ((this._serviceclient_b_importTableAdapter != null)) {
  2266. global::System.Data.DataRow[] updatedRows = dataSet.serviceclient_b_import.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  2267. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  2268. if (((updatedRows != null)
  2269. && (0 < updatedRows.Length))) {
  2270. result = (result + this._serviceclient_b_importTableAdapter.Update(updatedRows));
  2271. allChangedRows.AddRange(updatedRows);
  2272. }
  2273. }
  2274. return result;
  2275. }
  2276. /// <summary>
  2277. ///Insert rows in top-down order.
  2278. ///</summary>
  2279. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2280. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2281. private int UpdateInsertedRows(_pozdniakova_isp43DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2282. int result = 0;
  2283. if ((this._client_b_importTableAdapter != null)) {
  2284. global::System.Data.DataRow[] addedRows = dataSet.client_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  2285. if (((addedRows != null)
  2286. && (0 < addedRows.Length))) {
  2287. result = (result + this._client_b_importTableAdapter.Update(addedRows));
  2288. allAddedRows.AddRange(addedRows);
  2289. }
  2290. }
  2291. if ((this._service_b_importTableAdapter != null)) {
  2292. global::System.Data.DataRow[] addedRows = dataSet.service_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  2293. if (((addedRows != null)
  2294. && (0 < addedRows.Length))) {
  2295. result = (result + this._service_b_importTableAdapter.Update(addedRows));
  2296. allAddedRows.AddRange(addedRows);
  2297. }
  2298. }
  2299. if ((this._serviceclient_b_importTableAdapter != null)) {
  2300. global::System.Data.DataRow[] addedRows = dataSet.serviceclient_b_import.Select(null, null, global::System.Data.DataViewRowState.Added);
  2301. if (((addedRows != null)
  2302. && (0 < addedRows.Length))) {
  2303. result = (result + this._serviceclient_b_importTableAdapter.Update(addedRows));
  2304. allAddedRows.AddRange(addedRows);
  2305. }
  2306. }
  2307. return result;
  2308. }
  2309. /// <summary>
  2310. ///Delete rows in bottom-up order.
  2311. ///</summary>
  2312. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2313. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2314. private int UpdateDeletedRows(_pozdniakova_isp43DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  2315. int result = 0;
  2316. if ((this._serviceclient_b_importTableAdapter != null)) {
  2317. global::System.Data.DataRow[] deletedRows = dataSet.serviceclient_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2318. if (((deletedRows != null)
  2319. && (0 < deletedRows.Length))) {
  2320. result = (result + this._serviceclient_b_importTableAdapter.Update(deletedRows));
  2321. allChangedRows.AddRange(deletedRows);
  2322. }
  2323. }
  2324. if ((this._service_b_importTableAdapter != null)) {
  2325. global::System.Data.DataRow[] deletedRows = dataSet.service_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2326. if (((deletedRows != null)
  2327. && (0 < deletedRows.Length))) {
  2328. result = (result + this._service_b_importTableAdapter.Update(deletedRows));
  2329. allChangedRows.AddRange(deletedRows);
  2330. }
  2331. }
  2332. if ((this._client_b_importTableAdapter != null)) {
  2333. global::System.Data.DataRow[] deletedRows = dataSet.client_b_import.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  2334. if (((deletedRows != null)
  2335. && (0 < deletedRows.Length))) {
  2336. result = (result + this._client_b_importTableAdapter.Update(deletedRows));
  2337. allChangedRows.AddRange(deletedRows);
  2338. }
  2339. }
  2340. return result;
  2341. }
  2342. /// <summary>
  2343. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  2344. ///</summary>
  2345. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2346. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2347. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  2348. if (((updatedRows == null)
  2349. || (updatedRows.Length < 1))) {
  2350. return updatedRows;
  2351. }
  2352. if (((allAddedRows == null)
  2353. || (allAddedRows.Count < 1))) {
  2354. return updatedRows;
  2355. }
  2356. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2357. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  2358. global::System.Data.DataRow row = updatedRows[i];
  2359. if ((allAddedRows.Contains(row) == false)) {
  2360. realUpdatedRows.Add(row);
  2361. }
  2362. }
  2363. return realUpdatedRows.ToArray();
  2364. }
  2365. /// <summary>
  2366. ///Update all changes to the dataset.
  2367. ///</summary>
  2368. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2369. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2370. public virtual int UpdateAll(_pozdniakova_isp43DataSet dataSet) {
  2371. if ((dataSet == null)) {
  2372. throw new global::System.ArgumentNullException("dataSet");
  2373. }
  2374. if ((dataSet.HasChanges() == false)) {
  2375. return 0;
  2376. }
  2377. if (((this._client_b_importTableAdapter != null)
  2378. && (this.MatchTableAdapterConnection(this._client_b_importTableAdapter.Connection) == false))) {
  2379. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2380. "r, должны использовать одинаковую строку подключения.");
  2381. }
  2382. if (((this._service_b_importTableAdapter != null)
  2383. && (this.MatchTableAdapterConnection(this._service_b_importTableAdapter.Connection) == false))) {
  2384. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2385. "r, должны использовать одинаковую строку подключения.");
  2386. }
  2387. if (((this._serviceclient_b_importTableAdapter != null)
  2388. && (this.MatchTableAdapterConnection(this._serviceclient_b_importTableAdapter.Connection) == false))) {
  2389. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  2390. "r, должны использовать одинаковую строку подключения.");
  2391. }
  2392. global::System.Data.IDbConnection workConnection = this.Connection;
  2393. if ((workConnection == null)) {
  2394. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  2395. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  2396. }
  2397. bool workConnOpened = false;
  2398. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  2399. == global::System.Data.ConnectionState.Broken)) {
  2400. workConnection.Close();
  2401. }
  2402. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  2403. workConnection.Open();
  2404. workConnOpened = true;
  2405. }
  2406. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  2407. if ((workTransaction == null)) {
  2408. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  2409. "и или текущее состояние не позволяет начать транзакцию.");
  2410. }
  2411. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2412. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  2413. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  2414. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  2415. int result = 0;
  2416. global::System.Data.DataSet backupDataSet = null;
  2417. if (this.BackupDataSetBeforeUpdate) {
  2418. backupDataSet = new global::System.Data.DataSet();
  2419. backupDataSet.Merge(dataSet);
  2420. }
  2421. try {
  2422. // ---- Prepare for update -----------
  2423. //
  2424. if ((this._client_b_importTableAdapter != null)) {
  2425. revertConnections.Add(this._client_b_importTableAdapter, this._client_b_importTableAdapter.Connection);
  2426. this._client_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2427. this._client_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2428. if (this._client_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2429. this._client_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2430. adaptersWithAcceptChangesDuringUpdate.Add(this._client_b_importTableAdapter.Adapter);
  2431. }
  2432. }
  2433. if ((this._service_b_importTableAdapter != null)) {
  2434. revertConnections.Add(this._service_b_importTableAdapter, this._service_b_importTableAdapter.Connection);
  2435. this._service_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2436. this._service_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2437. if (this._service_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2438. this._service_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2439. adaptersWithAcceptChangesDuringUpdate.Add(this._service_b_importTableAdapter.Adapter);
  2440. }
  2441. }
  2442. if ((this._serviceclient_b_importTableAdapter != null)) {
  2443. revertConnections.Add(this._serviceclient_b_importTableAdapter, this._serviceclient_b_importTableAdapter.Connection);
  2444. this._serviceclient_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  2445. this._serviceclient_b_importTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  2446. if (this._serviceclient_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  2447. this._serviceclient_b_importTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  2448. adaptersWithAcceptChangesDuringUpdate.Add(this._serviceclient_b_importTableAdapter.Adapter);
  2449. }
  2450. }
  2451. //
  2452. //---- Perform updates -----------
  2453. //
  2454. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  2455. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2456. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2457. }
  2458. else {
  2459. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  2460. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  2461. }
  2462. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  2463. //
  2464. //---- Commit updates -----------
  2465. //
  2466. workTransaction.Commit();
  2467. if ((0 < allAddedRows.Count)) {
  2468. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2469. allAddedRows.CopyTo(rows);
  2470. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2471. global::System.Data.DataRow row = rows[i];
  2472. row.AcceptChanges();
  2473. }
  2474. }
  2475. if ((0 < allChangedRows.Count)) {
  2476. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  2477. allChangedRows.CopyTo(rows);
  2478. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2479. global::System.Data.DataRow row = rows[i];
  2480. row.AcceptChanges();
  2481. }
  2482. }
  2483. }
  2484. catch (global::System.Exception ex) {
  2485. workTransaction.Rollback();
  2486. // ---- Restore the dataset -----------
  2487. if (this.BackupDataSetBeforeUpdate) {
  2488. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  2489. dataSet.Clear();
  2490. dataSet.Merge(backupDataSet);
  2491. }
  2492. else {
  2493. if ((0 < allAddedRows.Count)) {
  2494. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  2495. allAddedRows.CopyTo(rows);
  2496. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  2497. global::System.Data.DataRow row = rows[i];
  2498. row.AcceptChanges();
  2499. row.SetAdded();
  2500. }
  2501. }
  2502. }
  2503. throw ex;
  2504. }
  2505. finally {
  2506. if (workConnOpened) {
  2507. workConnection.Close();
  2508. }
  2509. if ((this._client_b_importTableAdapter != null)) {
  2510. this._client_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._client_b_importTableAdapter]));
  2511. this._client_b_importTableAdapter.Transaction = null;
  2512. }
  2513. if ((this._service_b_importTableAdapter != null)) {
  2514. this._service_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._service_b_importTableAdapter]));
  2515. this._service_b_importTableAdapter.Transaction = null;
  2516. }
  2517. if ((this._serviceclient_b_importTableAdapter != null)) {
  2518. this._serviceclient_b_importTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._serviceclient_b_importTableAdapter]));
  2519. this._serviceclient_b_importTableAdapter.Transaction = null;
  2520. }
  2521. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  2522. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  2523. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  2524. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  2525. global::System.Data.Common.DataAdapter adapter = adapters[i];
  2526. adapter.AcceptChangesDuringUpdate = true;
  2527. }
  2528. }
  2529. }
  2530. return result;
  2531. }
  2532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2534. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  2535. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  2536. }
  2537. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2538. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2539. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  2540. if ((this._connection != null)) {
  2541. return true;
  2542. }
  2543. if (((this.Connection == null)
  2544. || (inputConnection == null))) {
  2545. return true;
  2546. }
  2547. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  2548. return true;
  2549. }
  2550. return false;
  2551. }
  2552. /// <summary>
  2553. ///Update Order Option
  2554. ///</summary>
  2555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2556. public enum UpdateOrderOption {
  2557. InsertUpdateDelete = 0,
  2558. UpdateInsertDelete = 1,
  2559. }
  2560. /// <summary>
  2561. ///Used to sort self-referenced table's rows
  2562. ///</summary>
  2563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2564. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  2565. private global::System.Data.DataRelation _relation;
  2566. private int _childFirst;
  2567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2569. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  2570. this._relation = relation;
  2571. if (childFirst) {
  2572. this._childFirst = -1;
  2573. }
  2574. else {
  2575. this._childFirst = 1;
  2576. }
  2577. }
  2578. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2579. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2580. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  2581. global::System.Diagnostics.Debug.Assert((row != null));
  2582. global::System.Data.DataRow root = row;
  2583. distance = 0;
  2584. 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>();
  2585. traversedRows[row] = row;
  2586. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2587. for (
  2588. ; ((parent != null)
  2589. && (traversedRows.ContainsKey(parent) == false));
  2590. ) {
  2591. distance = (distance + 1);
  2592. root = parent;
  2593. traversedRows[parent] = parent;
  2594. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  2595. }
  2596. if ((distance == 0)) {
  2597. traversedRows.Clear();
  2598. traversedRows[row] = row;
  2599. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2600. for (
  2601. ; ((parent != null)
  2602. && (traversedRows.ContainsKey(parent) == false));
  2603. ) {
  2604. distance = (distance + 1);
  2605. root = parent;
  2606. traversedRows[parent] = parent;
  2607. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  2608. }
  2609. }
  2610. return root;
  2611. }
  2612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2613. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2614. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  2615. if (object.ReferenceEquals(row1, row2)) {
  2616. return 0;
  2617. }
  2618. if ((row1 == null)) {
  2619. return -1;
  2620. }
  2621. if ((row2 == null)) {
  2622. return 1;
  2623. }
  2624. int distance1 = 0;
  2625. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  2626. int distance2 = 0;
  2627. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  2628. if (object.ReferenceEquals(root1, root2)) {
  2629. return (this._childFirst * distance1.CompareTo(distance2));
  2630. }
  2631. else {
  2632. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  2633. && (root2.Table != null)));
  2634. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  2635. return -1;
  2636. }
  2637. else {
  2638. return 1;
  2639. }
  2640. }
  2641. }
  2642. }
  2643. }
  2644. }
  2645. #pragma warning restore 1591