ПашковДаниилВячеславовичИСП43DataSet.Designer.cs 174 KB

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