KalachyovaISP41DataSet.Designer.cs 168 KB

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