Rp41MursahkinDataSet.Designer.cs 165 KB

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