konkursDataSet.Designer.cs 223 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace testkonkurs1 {
  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("konkursDataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class konkursDataSet : global::System.Data.DataSet {
  22. private bronirovaniDataTable tablebronirovani;
  23. private comfortDataTable tablecomfort;
  24. private mestaDataTable tablemesta;
  25. private nomerDataTable tablenomer;
  26. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  27. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  28. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  29. public konkursDataSet() {
  30. this.BeginInit();
  31. this.InitClass();
  32. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  33. base.Tables.CollectionChanged += schemaChangedHandler;
  34. base.Relations.CollectionChanged += schemaChangedHandler;
  35. this.EndInit();
  36. }
  37. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  38. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  39. protected konkursDataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  40. base(info, context, false) {
  41. if ((this.IsBinarySerialized(info, context) == true)) {
  42. this.InitVars(false);
  43. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  44. this.Tables.CollectionChanged += schemaChangedHandler1;
  45. this.Relations.CollectionChanged += schemaChangedHandler1;
  46. return;
  47. }
  48. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  49. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  50. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  51. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  52. if ((ds.Tables["bronirovani"] != null)) {
  53. base.Tables.Add(new bronirovaniDataTable(ds.Tables["bronirovani"]));
  54. }
  55. if ((ds.Tables["comfort"] != null)) {
  56. base.Tables.Add(new comfortDataTable(ds.Tables["comfort"]));
  57. }
  58. if ((ds.Tables["mesta"] != null)) {
  59. base.Tables.Add(new mestaDataTable(ds.Tables["mesta"]));
  60. }
  61. if ((ds.Tables["nomer"] != null)) {
  62. base.Tables.Add(new nomerDataTable(ds.Tables["nomer"]));
  63. }
  64. this.DataSetName = ds.DataSetName;
  65. this.Prefix = ds.Prefix;
  66. this.Namespace = ds.Namespace;
  67. this.Locale = ds.Locale;
  68. this.CaseSensitive = ds.CaseSensitive;
  69. this.EnforceConstraints = ds.EnforceConstraints;
  70. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  71. this.InitVars();
  72. }
  73. else {
  74. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  75. }
  76. this.GetSerializationData(info, context);
  77. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  78. base.Tables.CollectionChanged += schemaChangedHandler;
  79. this.Relations.CollectionChanged += schemaChangedHandler;
  80. }
  81. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  82. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  83. [global::System.ComponentModel.Browsable(false)]
  84. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  85. public bronirovaniDataTable bronirovani {
  86. get {
  87. return this.tablebronirovani;
  88. }
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  91. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  92. [global::System.ComponentModel.Browsable(false)]
  93. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  94. public comfortDataTable comfort {
  95. get {
  96. return this.tablecomfort;
  97. }
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  100. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  101. [global::System.ComponentModel.Browsable(false)]
  102. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  103. public mestaDataTable mesta {
  104. get {
  105. return this.tablemesta;
  106. }
  107. }
  108. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  109. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  110. [global::System.ComponentModel.Browsable(false)]
  111. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  112. public nomerDataTable nomer {
  113. get {
  114. return this.tablenomer;
  115. }
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  119. [global::System.ComponentModel.BrowsableAttribute(true)]
  120. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  121. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  122. get {
  123. return this._schemaSerializationMode;
  124. }
  125. set {
  126. this._schemaSerializationMode = value;
  127. }
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  130. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  131. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  132. public new global::System.Data.DataTableCollection Tables {
  133. get {
  134. return base.Tables;
  135. }
  136. }
  137. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  138. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  139. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  140. public new global::System.Data.DataRelationCollection Relations {
  141. get {
  142. return base.Relations;
  143. }
  144. }
  145. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  146. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  147. protected override void InitializeDerivedDataSet() {
  148. this.BeginInit();
  149. this.InitClass();
  150. this.EndInit();
  151. }
  152. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  153. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  154. public override global::System.Data.DataSet Clone() {
  155. konkursDataSet cln = ((konkursDataSet)(base.Clone()));
  156. cln.InitVars();
  157. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  158. return cln;
  159. }
  160. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  161. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  162. protected override bool ShouldSerializeTables() {
  163. return false;
  164. }
  165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  167. protected override bool ShouldSerializeRelations() {
  168. return false;
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  171. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  172. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  173. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  174. this.Reset();
  175. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  176. ds.ReadXml(reader);
  177. if ((ds.Tables["bronirovani"] != null)) {
  178. base.Tables.Add(new bronirovaniDataTable(ds.Tables["bronirovani"]));
  179. }
  180. if ((ds.Tables["comfort"] != null)) {
  181. base.Tables.Add(new comfortDataTable(ds.Tables["comfort"]));
  182. }
  183. if ((ds.Tables["mesta"] != null)) {
  184. base.Tables.Add(new mestaDataTable(ds.Tables["mesta"]));
  185. }
  186. if ((ds.Tables["nomer"] != null)) {
  187. base.Tables.Add(new nomerDataTable(ds.Tables["nomer"]));
  188. }
  189. this.DataSetName = ds.DataSetName;
  190. this.Prefix = ds.Prefix;
  191. this.Namespace = ds.Namespace;
  192. this.Locale = ds.Locale;
  193. this.CaseSensitive = ds.CaseSensitive;
  194. this.EnforceConstraints = ds.EnforceConstraints;
  195. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  196. this.InitVars();
  197. }
  198. else {
  199. this.ReadXml(reader);
  200. this.InitVars();
  201. }
  202. }
  203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  205. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  206. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  207. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  208. stream.Position = 0;
  209. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  210. }
  211. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  212. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  213. internal void InitVars() {
  214. this.InitVars(true);
  215. }
  216. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  217. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  218. internal void InitVars(bool initTable) {
  219. this.tablebronirovani = ((bronirovaniDataTable)(base.Tables["bronirovani"]));
  220. if ((initTable == true)) {
  221. if ((this.tablebronirovani != null)) {
  222. this.tablebronirovani.InitVars();
  223. }
  224. }
  225. this.tablecomfort = ((comfortDataTable)(base.Tables["comfort"]));
  226. if ((initTable == true)) {
  227. if ((this.tablecomfort != null)) {
  228. this.tablecomfort.InitVars();
  229. }
  230. }
  231. this.tablemesta = ((mestaDataTable)(base.Tables["mesta"]));
  232. if ((initTable == true)) {
  233. if ((this.tablemesta != null)) {
  234. this.tablemesta.InitVars();
  235. }
  236. }
  237. this.tablenomer = ((nomerDataTable)(base.Tables["nomer"]));
  238. if ((initTable == true)) {
  239. if ((this.tablenomer != null)) {
  240. this.tablenomer.InitVars();
  241. }
  242. }
  243. }
  244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  246. private void InitClass() {
  247. this.DataSetName = "konkursDataSet";
  248. this.Prefix = "";
  249. this.Namespace = "http://tempuri.org/konkursDataSet.xsd";
  250. this.EnforceConstraints = true;
  251. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  252. this.tablebronirovani = new bronirovaniDataTable();
  253. base.Tables.Add(this.tablebronirovani);
  254. this.tablecomfort = new comfortDataTable();
  255. base.Tables.Add(this.tablecomfort);
  256. this.tablemesta = new mestaDataTable();
  257. base.Tables.Add(this.tablemesta);
  258. this.tablenomer = new nomerDataTable();
  259. base.Tables.Add(this.tablenomer);
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  263. private bool ShouldSerializebronirovani() {
  264. return false;
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  268. private bool ShouldSerializecomfort() {
  269. return false;
  270. }
  271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  273. private bool ShouldSerializemesta() {
  274. return false;
  275. }
  276. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  277. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  278. private bool ShouldSerializenomer() {
  279. return false;
  280. }
  281. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  282. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  283. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  284. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  285. this.InitVars();
  286. }
  287. }
  288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  290. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  291. konkursDataSet ds = new konkursDataSet();
  292. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  293. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  294. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  295. any.Namespace = ds.Namespace;
  296. sequence.Items.Add(any);
  297. type.Particle = sequence;
  298. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  299. if (xs.Contains(dsSchema.TargetNamespace)) {
  300. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  301. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  302. try {
  303. global::System.Xml.Schema.XmlSchema schema = null;
  304. dsSchema.Write(s1);
  305. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  306. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  307. s2.SetLength(0);
  308. schema.Write(s2);
  309. if ((s1.Length == s2.Length)) {
  310. s1.Position = 0;
  311. s2.Position = 0;
  312. for (; ((s1.Position != s1.Length)
  313. && (s1.ReadByte() == s2.ReadByte())); ) {
  314. ;
  315. }
  316. if ((s1.Position == s1.Length)) {
  317. return type;
  318. }
  319. }
  320. }
  321. }
  322. finally {
  323. if ((s1 != null)) {
  324. s1.Close();
  325. }
  326. if ((s2 != null)) {
  327. s2.Close();
  328. }
  329. }
  330. }
  331. xs.Add(dsSchema);
  332. return type;
  333. }
  334. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  335. public delegate void bronirovaniRowChangeEventHandler(object sender, bronirovaniRowChangeEvent e);
  336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  337. public delegate void comfortRowChangeEventHandler(object sender, comfortRowChangeEvent e);
  338. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  339. public delegate void mestaRowChangeEventHandler(object sender, mestaRowChangeEvent e);
  340. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  341. public delegate void nomerRowChangeEventHandler(object sender, nomerRowChangeEvent e);
  342. /// <summary>
  343. ///Represents the strongly named DataTable class.
  344. ///</summary>
  345. [global::System.Serializable()]
  346. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  347. public partial class bronirovaniDataTable : global::System.Data.TypedTableBase<bronirovaniRow> {
  348. private global::System.Data.DataColumn columnnomer_kvitancii;
  349. private global::System.Data.DataColumn columndate_bronirovania;
  350. private global::System.Data.DataColumn columndate_zaezda;
  351. private global::System.Data.DataColumn columnnomer_mesta;
  352. private global::System.Data.DataColumn columnId_clients;
  353. private global::System.Data.DataColumn columncol_days;
  354. private global::System.Data.DataColumn columndate_oplata;
  355. private global::System.Data.DataColumn columnsale_zaranie;
  356. private global::System.Data.DataColumn columnsale_season;
  357. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  358. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  359. public bronirovaniDataTable() {
  360. this.TableName = "bronirovani";
  361. this.BeginInit();
  362. this.InitClass();
  363. this.EndInit();
  364. }
  365. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  366. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  367. internal bronirovaniDataTable(global::System.Data.DataTable table) {
  368. this.TableName = table.TableName;
  369. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  370. this.CaseSensitive = table.CaseSensitive;
  371. }
  372. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  373. this.Locale = table.Locale;
  374. }
  375. if ((table.Namespace != table.DataSet.Namespace)) {
  376. this.Namespace = table.Namespace;
  377. }
  378. this.Prefix = table.Prefix;
  379. this.MinimumCapacity = table.MinimumCapacity;
  380. }
  381. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  382. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  383. protected bronirovaniDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  384. base(info, context) {
  385. this.InitVars();
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  389. public global::System.Data.DataColumn nomer_kvitanciiColumn {
  390. get {
  391. return this.columnnomer_kvitancii;
  392. }
  393. }
  394. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. public global::System.Data.DataColumn date_bronirovaniaColumn {
  397. get {
  398. return this.columndate_bronirovania;
  399. }
  400. }
  401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  403. public global::System.Data.DataColumn date_zaezdaColumn {
  404. get {
  405. return this.columndate_zaezda;
  406. }
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  410. public global::System.Data.DataColumn nomer_mestaColumn {
  411. get {
  412. return this.columnnomer_mesta;
  413. }
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. public global::System.Data.DataColumn Id_clientsColumn {
  418. get {
  419. return this.columnId_clients;
  420. }
  421. }
  422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  424. public global::System.Data.DataColumn col_daysColumn {
  425. get {
  426. return this.columncol_days;
  427. }
  428. }
  429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  431. public global::System.Data.DataColumn date_oplataColumn {
  432. get {
  433. return this.columndate_oplata;
  434. }
  435. }
  436. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  437. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  438. public global::System.Data.DataColumn sale_zaranieColumn {
  439. get {
  440. return this.columnsale_zaranie;
  441. }
  442. }
  443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  445. public global::System.Data.DataColumn sale_seasonColumn {
  446. get {
  447. return this.columnsale_season;
  448. }
  449. }
  450. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  451. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  452. [global::System.ComponentModel.Browsable(false)]
  453. public int Count {
  454. get {
  455. return this.Rows.Count;
  456. }
  457. }
  458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  460. public bronirovaniRow this[int index] {
  461. get {
  462. return ((bronirovaniRow)(this.Rows[index]));
  463. }
  464. }
  465. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  466. public event bronirovaniRowChangeEventHandler bronirovaniRowChanging;
  467. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  468. public event bronirovaniRowChangeEventHandler bronirovaniRowChanged;
  469. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  470. public event bronirovaniRowChangeEventHandler bronirovaniRowDeleting;
  471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  472. public event bronirovaniRowChangeEventHandler bronirovaniRowDeleted;
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. public void AddbronirovaniRow(bronirovaniRow row) {
  476. this.Rows.Add(row);
  477. }
  478. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  479. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  480. public bronirovaniRow AddbronirovaniRow(int nomer_kvitancii, System.DateTime date_bronirovania, System.DateTime date_zaezda, int nomer_mesta, int Id_clients, int col_days, System.DateTime date_oplata, string sale_zaranie, string sale_season) {
  481. bronirovaniRow rowbronirovaniRow = ((bronirovaniRow)(this.NewRow()));
  482. object[] columnValuesArray = new object[] {
  483. nomer_kvitancii,
  484. date_bronirovania,
  485. date_zaezda,
  486. nomer_mesta,
  487. Id_clients,
  488. col_days,
  489. date_oplata,
  490. sale_zaranie,
  491. sale_season};
  492. rowbronirovaniRow.ItemArray = columnValuesArray;
  493. this.Rows.Add(rowbronirovaniRow);
  494. return rowbronirovaniRow;
  495. }
  496. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  497. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  498. public override global::System.Data.DataTable Clone() {
  499. bronirovaniDataTable cln = ((bronirovaniDataTable)(base.Clone()));
  500. cln.InitVars();
  501. return cln;
  502. }
  503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  504. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  505. protected override global::System.Data.DataTable CreateInstance() {
  506. return new bronirovaniDataTable();
  507. }
  508. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  509. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  510. internal void InitVars() {
  511. this.columnnomer_kvitancii = base.Columns["nomer_kvitancii"];
  512. this.columndate_bronirovania = base.Columns["date_bronirovania"];
  513. this.columndate_zaezda = base.Columns["date_zaezda"];
  514. this.columnnomer_mesta = base.Columns["nomer_mesta"];
  515. this.columnId_clients = base.Columns["Id_clients"];
  516. this.columncol_days = base.Columns["col_days"];
  517. this.columndate_oplata = base.Columns["date_oplata"];
  518. this.columnsale_zaranie = base.Columns["sale_zaranie"];
  519. this.columnsale_season = base.Columns["sale_season"];
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  522. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  523. private void InitClass() {
  524. this.columnnomer_kvitancii = new global::System.Data.DataColumn("nomer_kvitancii", typeof(int), null, global::System.Data.MappingType.Element);
  525. base.Columns.Add(this.columnnomer_kvitancii);
  526. this.columndate_bronirovania = new global::System.Data.DataColumn("date_bronirovania", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  527. base.Columns.Add(this.columndate_bronirovania);
  528. this.columndate_zaezda = new global::System.Data.DataColumn("date_zaezda", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  529. base.Columns.Add(this.columndate_zaezda);
  530. this.columnnomer_mesta = new global::System.Data.DataColumn("nomer_mesta", typeof(int), null, global::System.Data.MappingType.Element);
  531. base.Columns.Add(this.columnnomer_mesta);
  532. this.columnId_clients = new global::System.Data.DataColumn("Id_clients", typeof(int), null, global::System.Data.MappingType.Element);
  533. base.Columns.Add(this.columnId_clients);
  534. this.columncol_days = new global::System.Data.DataColumn("col_days", typeof(int), null, global::System.Data.MappingType.Element);
  535. base.Columns.Add(this.columncol_days);
  536. this.columndate_oplata = new global::System.Data.DataColumn("date_oplata", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
  537. base.Columns.Add(this.columndate_oplata);
  538. this.columnsale_zaranie = new global::System.Data.DataColumn("sale_zaranie", typeof(string), null, global::System.Data.MappingType.Element);
  539. base.Columns.Add(this.columnsale_zaranie);
  540. this.columnsale_season = new global::System.Data.DataColumn("sale_season", typeof(string), null, global::System.Data.MappingType.Element);
  541. base.Columns.Add(this.columnsale_season);
  542. this.columnsale_zaranie.MaxLength = 10;
  543. this.columnsale_season.MaxLength = 10;
  544. }
  545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  547. public bronirovaniRow NewbronirovaniRow() {
  548. return ((bronirovaniRow)(this.NewRow()));
  549. }
  550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  552. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  553. return new bronirovaniRow(builder);
  554. }
  555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  557. protected override global::System.Type GetRowType() {
  558. return typeof(bronirovaniRow);
  559. }
  560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  562. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  563. base.OnRowChanged(e);
  564. if ((this.bronirovaniRowChanged != null)) {
  565. this.bronirovaniRowChanged(this, new bronirovaniRowChangeEvent(((bronirovaniRow)(e.Row)), e.Action));
  566. }
  567. }
  568. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  569. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  570. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  571. base.OnRowChanging(e);
  572. if ((this.bronirovaniRowChanging != null)) {
  573. this.bronirovaniRowChanging(this, new bronirovaniRowChangeEvent(((bronirovaniRow)(e.Row)), e.Action));
  574. }
  575. }
  576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  578. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  579. base.OnRowDeleted(e);
  580. if ((this.bronirovaniRowDeleted != null)) {
  581. this.bronirovaniRowDeleted(this, new bronirovaniRowChangeEvent(((bronirovaniRow)(e.Row)), e.Action));
  582. }
  583. }
  584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  586. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  587. base.OnRowDeleting(e);
  588. if ((this.bronirovaniRowDeleting != null)) {
  589. this.bronirovaniRowDeleting(this, new bronirovaniRowChangeEvent(((bronirovaniRow)(e.Row)), e.Action));
  590. }
  591. }
  592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  594. public void RemovebronirovaniRow(bronirovaniRow row) {
  595. this.Rows.Remove(row);
  596. }
  597. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  598. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  599. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  600. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  601. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  602. konkursDataSet ds = new konkursDataSet();
  603. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  604. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  605. any1.MinOccurs = new decimal(0);
  606. any1.MaxOccurs = decimal.MaxValue;
  607. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  608. sequence.Items.Add(any1);
  609. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  610. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  611. any2.MinOccurs = new decimal(1);
  612. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  613. sequence.Items.Add(any2);
  614. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  615. attribute1.Name = "namespace";
  616. attribute1.FixedValue = ds.Namespace;
  617. type.Attributes.Add(attribute1);
  618. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  619. attribute2.Name = "tableTypeName";
  620. attribute2.FixedValue = "bronirovaniDataTable";
  621. type.Attributes.Add(attribute2);
  622. type.Particle = sequence;
  623. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  624. if (xs.Contains(dsSchema.TargetNamespace)) {
  625. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  626. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  627. try {
  628. global::System.Xml.Schema.XmlSchema schema = null;
  629. dsSchema.Write(s1);
  630. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  631. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  632. s2.SetLength(0);
  633. schema.Write(s2);
  634. if ((s1.Length == s2.Length)) {
  635. s1.Position = 0;
  636. s2.Position = 0;
  637. for (; ((s1.Position != s1.Length)
  638. && (s1.ReadByte() == s2.ReadByte())); ) {
  639. ;
  640. }
  641. if ((s1.Position == s1.Length)) {
  642. return type;
  643. }
  644. }
  645. }
  646. }
  647. finally {
  648. if ((s1 != null)) {
  649. s1.Close();
  650. }
  651. if ((s2 != null)) {
  652. s2.Close();
  653. }
  654. }
  655. }
  656. xs.Add(dsSchema);
  657. return type;
  658. }
  659. }
  660. /// <summary>
  661. ///Represents the strongly named DataTable class.
  662. ///</summary>
  663. [global::System.Serializable()]
  664. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  665. public partial class comfortDataTable : global::System.Data.TypedTableBase<comfortRow> {
  666. private global::System.Data.DataColumn columnlvl_comfort;
  667. private global::System.Data.DataColumn columnprice_broni;
  668. private global::System.Data.DataColumn columnprice_projiv;
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  670. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  671. public comfortDataTable() {
  672. this.TableName = "comfort";
  673. this.BeginInit();
  674. this.InitClass();
  675. this.EndInit();
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  678. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  679. internal comfortDataTable(global::System.Data.DataTable table) {
  680. this.TableName = table.TableName;
  681. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  682. this.CaseSensitive = table.CaseSensitive;
  683. }
  684. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  685. this.Locale = table.Locale;
  686. }
  687. if ((table.Namespace != table.DataSet.Namespace)) {
  688. this.Namespace = table.Namespace;
  689. }
  690. this.Prefix = table.Prefix;
  691. this.MinimumCapacity = table.MinimumCapacity;
  692. }
  693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  694. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  695. protected comfortDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  696. base(info, context) {
  697. this.InitVars();
  698. }
  699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  701. public global::System.Data.DataColumn lvl_comfortColumn {
  702. get {
  703. return this.columnlvl_comfort;
  704. }
  705. }
  706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  708. public global::System.Data.DataColumn price_broniColumn {
  709. get {
  710. return this.columnprice_broni;
  711. }
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public global::System.Data.DataColumn price_projivColumn {
  716. get {
  717. return this.columnprice_projiv;
  718. }
  719. }
  720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  722. [global::System.ComponentModel.Browsable(false)]
  723. public int Count {
  724. get {
  725. return this.Rows.Count;
  726. }
  727. }
  728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  730. public comfortRow this[int index] {
  731. get {
  732. return ((comfortRow)(this.Rows[index]));
  733. }
  734. }
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. public event comfortRowChangeEventHandler comfortRowChanging;
  737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  738. public event comfortRowChangeEventHandler comfortRowChanged;
  739. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  740. public event comfortRowChangeEventHandler comfortRowDeleting;
  741. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  742. public event comfortRowChangeEventHandler comfortRowDeleted;
  743. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  744. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  745. public void AddcomfortRow(comfortRow row) {
  746. this.Rows.Add(row);
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. public comfortRow AddcomfortRow(string price_broni, string price_projiv) {
  751. comfortRow rowcomfortRow = ((comfortRow)(this.NewRow()));
  752. object[] columnValuesArray = new object[] {
  753. null,
  754. price_broni,
  755. price_projiv};
  756. rowcomfortRow.ItemArray = columnValuesArray;
  757. this.Rows.Add(rowcomfortRow);
  758. return rowcomfortRow;
  759. }
  760. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  761. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  762. public override global::System.Data.DataTable Clone() {
  763. comfortDataTable cln = ((comfortDataTable)(base.Clone()));
  764. cln.InitVars();
  765. return cln;
  766. }
  767. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  768. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  769. protected override global::System.Data.DataTable CreateInstance() {
  770. return new comfortDataTable();
  771. }
  772. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  773. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  774. internal void InitVars() {
  775. this.columnlvl_comfort = base.Columns["lvl_comfort"];
  776. this.columnprice_broni = base.Columns["price_broni"];
  777. this.columnprice_projiv = base.Columns["price_projiv"];
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  780. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  781. private void InitClass() {
  782. this.columnlvl_comfort = new global::System.Data.DataColumn("lvl_comfort", typeof(int), null, global::System.Data.MappingType.Element);
  783. base.Columns.Add(this.columnlvl_comfort);
  784. this.columnprice_broni = new global::System.Data.DataColumn("price_broni", typeof(string), null, global::System.Data.MappingType.Element);
  785. base.Columns.Add(this.columnprice_broni);
  786. this.columnprice_projiv = new global::System.Data.DataColumn("price_projiv", typeof(string), null, global::System.Data.MappingType.Element);
  787. base.Columns.Add(this.columnprice_projiv);
  788. this.columnlvl_comfort.AutoIncrement = true;
  789. this.columnlvl_comfort.AutoIncrementSeed = -1;
  790. this.columnlvl_comfort.AutoIncrementStep = -1;
  791. this.columnlvl_comfort.AllowDBNull = false;
  792. this.columnlvl_comfort.ReadOnly = true;
  793. this.columnprice_broni.MaxLength = 10;
  794. this.columnprice_projiv.MaxLength = 10;
  795. }
  796. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  797. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  798. public comfortRow NewcomfortRow() {
  799. return ((comfortRow)(this.NewRow()));
  800. }
  801. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  802. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  803. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  804. return new comfortRow(builder);
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  807. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  808. protected override global::System.Type GetRowType() {
  809. return typeof(comfortRow);
  810. }
  811. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  812. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  813. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  814. base.OnRowChanged(e);
  815. if ((this.comfortRowChanged != null)) {
  816. this.comfortRowChanged(this, new comfortRowChangeEvent(((comfortRow)(e.Row)), e.Action));
  817. }
  818. }
  819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  821. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  822. base.OnRowChanging(e);
  823. if ((this.comfortRowChanging != null)) {
  824. this.comfortRowChanging(this, new comfortRowChangeEvent(((comfortRow)(e.Row)), e.Action));
  825. }
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  828. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  829. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  830. base.OnRowDeleted(e);
  831. if ((this.comfortRowDeleted != null)) {
  832. this.comfortRowDeleted(this, new comfortRowChangeEvent(((comfortRow)(e.Row)), e.Action));
  833. }
  834. }
  835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  837. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  838. base.OnRowDeleting(e);
  839. if ((this.comfortRowDeleting != null)) {
  840. this.comfortRowDeleting(this, new comfortRowChangeEvent(((comfortRow)(e.Row)), e.Action));
  841. }
  842. }
  843. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  844. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  845. public void RemovecomfortRow(comfortRow row) {
  846. this.Rows.Remove(row);
  847. }
  848. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  849. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  850. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  851. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  852. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  853. konkursDataSet ds = new konkursDataSet();
  854. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  855. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  856. any1.MinOccurs = new decimal(0);
  857. any1.MaxOccurs = decimal.MaxValue;
  858. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  859. sequence.Items.Add(any1);
  860. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  861. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  862. any2.MinOccurs = new decimal(1);
  863. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  864. sequence.Items.Add(any2);
  865. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  866. attribute1.Name = "namespace";
  867. attribute1.FixedValue = ds.Namespace;
  868. type.Attributes.Add(attribute1);
  869. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  870. attribute2.Name = "tableTypeName";
  871. attribute2.FixedValue = "comfortDataTable";
  872. type.Attributes.Add(attribute2);
  873. type.Particle = sequence;
  874. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  875. if (xs.Contains(dsSchema.TargetNamespace)) {
  876. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  877. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  878. try {
  879. global::System.Xml.Schema.XmlSchema schema = null;
  880. dsSchema.Write(s1);
  881. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  882. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  883. s2.SetLength(0);
  884. schema.Write(s2);
  885. if ((s1.Length == s2.Length)) {
  886. s1.Position = 0;
  887. s2.Position = 0;
  888. for (; ((s1.Position != s1.Length)
  889. && (s1.ReadByte() == s2.ReadByte())); ) {
  890. ;
  891. }
  892. if ((s1.Position == s1.Length)) {
  893. return type;
  894. }
  895. }
  896. }
  897. }
  898. finally {
  899. if ((s1 != null)) {
  900. s1.Close();
  901. }
  902. if ((s2 != null)) {
  903. s2.Close();
  904. }
  905. }
  906. }
  907. xs.Add(dsSchema);
  908. return type;
  909. }
  910. }
  911. /// <summary>
  912. ///Represents the strongly named DataTable class.
  913. ///</summary>
  914. [global::System.Serializable()]
  915. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  916. public partial class mestaDataTable : global::System.Data.TypedTableBase<mestaRow> {
  917. private global::System.Data.DataColumn columnid_mesta;
  918. private global::System.Data.DataColumn columnnomer_comnat;
  919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  921. public mestaDataTable() {
  922. this.TableName = "mesta";
  923. this.BeginInit();
  924. this.InitClass();
  925. this.EndInit();
  926. }
  927. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  928. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  929. internal mestaDataTable(global::System.Data.DataTable table) {
  930. this.TableName = table.TableName;
  931. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  932. this.CaseSensitive = table.CaseSensitive;
  933. }
  934. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  935. this.Locale = table.Locale;
  936. }
  937. if ((table.Namespace != table.DataSet.Namespace)) {
  938. this.Namespace = table.Namespace;
  939. }
  940. this.Prefix = table.Prefix;
  941. this.MinimumCapacity = table.MinimumCapacity;
  942. }
  943. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  944. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  945. protected mestaDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  946. base(info, context) {
  947. this.InitVars();
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  951. public global::System.Data.DataColumn id_mestaColumn {
  952. get {
  953. return this.columnid_mesta;
  954. }
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  957. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  958. public global::System.Data.DataColumn nomer_comnatColumn {
  959. get {
  960. return this.columnnomer_comnat;
  961. }
  962. }
  963. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  964. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  965. [global::System.ComponentModel.Browsable(false)]
  966. public int Count {
  967. get {
  968. return this.Rows.Count;
  969. }
  970. }
  971. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  972. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  973. public mestaRow this[int index] {
  974. get {
  975. return ((mestaRow)(this.Rows[index]));
  976. }
  977. }
  978. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  979. public event mestaRowChangeEventHandler mestaRowChanging;
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public event mestaRowChangeEventHandler mestaRowChanged;
  982. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  983. public event mestaRowChangeEventHandler mestaRowDeleting;
  984. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  985. public event mestaRowChangeEventHandler mestaRowDeleted;
  986. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  987. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  988. public void AddmestaRow(mestaRow row) {
  989. this.Rows.Add(row);
  990. }
  991. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  992. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  993. public mestaRow AddmestaRow(int nomer_comnat) {
  994. mestaRow rowmestaRow = ((mestaRow)(this.NewRow()));
  995. object[] columnValuesArray = new object[] {
  996. null,
  997. nomer_comnat};
  998. rowmestaRow.ItemArray = columnValuesArray;
  999. this.Rows.Add(rowmestaRow);
  1000. return rowmestaRow;
  1001. }
  1002. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1003. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1004. public mestaRow FindByid_mesta(int id_mesta) {
  1005. return ((mestaRow)(this.Rows.Find(new object[] {
  1006. id_mesta})));
  1007. }
  1008. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1009. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1010. public override global::System.Data.DataTable Clone() {
  1011. mestaDataTable cln = ((mestaDataTable)(base.Clone()));
  1012. cln.InitVars();
  1013. return cln;
  1014. }
  1015. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1016. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1017. protected override global::System.Data.DataTable CreateInstance() {
  1018. return new mestaDataTable();
  1019. }
  1020. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1021. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1022. internal void InitVars() {
  1023. this.columnid_mesta = base.Columns["id_mesta"];
  1024. this.columnnomer_comnat = base.Columns["nomer_comnat"];
  1025. }
  1026. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1027. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1028. private void InitClass() {
  1029. this.columnid_mesta = new global::System.Data.DataColumn("id_mesta", typeof(int), null, global::System.Data.MappingType.Element);
  1030. base.Columns.Add(this.columnid_mesta);
  1031. this.columnnomer_comnat = new global::System.Data.DataColumn("nomer_comnat", typeof(int), null, global::System.Data.MappingType.Element);
  1032. base.Columns.Add(this.columnnomer_comnat);
  1033. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1034. this.columnid_mesta}, true));
  1035. this.columnid_mesta.AutoIncrement = true;
  1036. this.columnid_mesta.AutoIncrementSeed = -1;
  1037. this.columnid_mesta.AutoIncrementStep = -1;
  1038. this.columnid_mesta.AllowDBNull = false;
  1039. this.columnid_mesta.ReadOnly = true;
  1040. this.columnid_mesta.Unique = true;
  1041. }
  1042. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1043. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1044. public mestaRow NewmestaRow() {
  1045. return ((mestaRow)(this.NewRow()));
  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.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1050. return new mestaRow(builder);
  1051. }
  1052. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1053. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1054. protected override global::System.Type GetRowType() {
  1055. return typeof(mestaRow);
  1056. }
  1057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1059. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1060. base.OnRowChanged(e);
  1061. if ((this.mestaRowChanged != null)) {
  1062. this.mestaRowChanged(this, new mestaRowChangeEvent(((mestaRow)(e.Row)), e.Action));
  1063. }
  1064. }
  1065. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1066. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1067. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1068. base.OnRowChanging(e);
  1069. if ((this.mestaRowChanging != null)) {
  1070. this.mestaRowChanging(this, new mestaRowChangeEvent(((mestaRow)(e.Row)), e.Action));
  1071. }
  1072. }
  1073. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1074. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1075. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1076. base.OnRowDeleted(e);
  1077. if ((this.mestaRowDeleted != null)) {
  1078. this.mestaRowDeleted(this, new mestaRowChangeEvent(((mestaRow)(e.Row)), e.Action));
  1079. }
  1080. }
  1081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1083. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1084. base.OnRowDeleting(e);
  1085. if ((this.mestaRowDeleting != null)) {
  1086. this.mestaRowDeleting(this, new mestaRowChangeEvent(((mestaRow)(e.Row)), e.Action));
  1087. }
  1088. }
  1089. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1090. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1091. public void RemovemestaRow(mestaRow row) {
  1092. this.Rows.Remove(row);
  1093. }
  1094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1096. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1097. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1098. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1099. konkursDataSet ds = new konkursDataSet();
  1100. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1101. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1102. any1.MinOccurs = new decimal(0);
  1103. any1.MaxOccurs = decimal.MaxValue;
  1104. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1105. sequence.Items.Add(any1);
  1106. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1107. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1108. any2.MinOccurs = new decimal(1);
  1109. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1110. sequence.Items.Add(any2);
  1111. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1112. attribute1.Name = "namespace";
  1113. attribute1.FixedValue = ds.Namespace;
  1114. type.Attributes.Add(attribute1);
  1115. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1116. attribute2.Name = "tableTypeName";
  1117. attribute2.FixedValue = "mestaDataTable";
  1118. type.Attributes.Add(attribute2);
  1119. type.Particle = sequence;
  1120. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1121. if (xs.Contains(dsSchema.TargetNamespace)) {
  1122. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1123. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1124. try {
  1125. global::System.Xml.Schema.XmlSchema schema = null;
  1126. dsSchema.Write(s1);
  1127. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1128. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1129. s2.SetLength(0);
  1130. schema.Write(s2);
  1131. if ((s1.Length == s2.Length)) {
  1132. s1.Position = 0;
  1133. s2.Position = 0;
  1134. for (; ((s1.Position != s1.Length)
  1135. && (s1.ReadByte() == s2.ReadByte())); ) {
  1136. ;
  1137. }
  1138. if ((s1.Position == s1.Length)) {
  1139. return type;
  1140. }
  1141. }
  1142. }
  1143. }
  1144. finally {
  1145. if ((s1 != null)) {
  1146. s1.Close();
  1147. }
  1148. if ((s2 != null)) {
  1149. s2.Close();
  1150. }
  1151. }
  1152. }
  1153. xs.Add(dsSchema);
  1154. return type;
  1155. }
  1156. }
  1157. /// <summary>
  1158. ///Represents the strongly named DataTable class.
  1159. ///</summary>
  1160. [global::System.Serializable()]
  1161. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1162. public partial class nomerDataTable : global::System.Data.TypedTableBase<nomerRow> {
  1163. private global::System.Data.DataColumn columnnomer_comnat;
  1164. private global::System.Data.DataColumn columnlvl_comfort;
  1165. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1166. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1167. public nomerDataTable() {
  1168. this.TableName = "nomer";
  1169. this.BeginInit();
  1170. this.InitClass();
  1171. this.EndInit();
  1172. }
  1173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1174. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1175. internal nomerDataTable(global::System.Data.DataTable table) {
  1176. this.TableName = table.TableName;
  1177. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1178. this.CaseSensitive = table.CaseSensitive;
  1179. }
  1180. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1181. this.Locale = table.Locale;
  1182. }
  1183. if ((table.Namespace != table.DataSet.Namespace)) {
  1184. this.Namespace = table.Namespace;
  1185. }
  1186. this.Prefix = table.Prefix;
  1187. this.MinimumCapacity = table.MinimumCapacity;
  1188. }
  1189. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1190. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1191. protected nomerDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1192. base(info, context) {
  1193. this.InitVars();
  1194. }
  1195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1197. public global::System.Data.DataColumn nomer_comnatColumn {
  1198. get {
  1199. return this.columnnomer_comnat;
  1200. }
  1201. }
  1202. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1203. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1204. public global::System.Data.DataColumn lvl_comfortColumn {
  1205. get {
  1206. return this.columnlvl_comfort;
  1207. }
  1208. }
  1209. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1210. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1211. [global::System.ComponentModel.Browsable(false)]
  1212. public int Count {
  1213. get {
  1214. return this.Rows.Count;
  1215. }
  1216. }
  1217. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1218. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1219. public nomerRow this[int index] {
  1220. get {
  1221. return ((nomerRow)(this.Rows[index]));
  1222. }
  1223. }
  1224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1225. public event nomerRowChangeEventHandler nomerRowChanging;
  1226. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1227. public event nomerRowChangeEventHandler nomerRowChanged;
  1228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1229. public event nomerRowChangeEventHandler nomerRowDeleting;
  1230. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1231. public event nomerRowChangeEventHandler nomerRowDeleted;
  1232. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1233. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1234. public void AddnomerRow(nomerRow row) {
  1235. this.Rows.Add(row);
  1236. }
  1237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1239. public nomerRow AddnomerRow(int lvl_comfort) {
  1240. nomerRow rownomerRow = ((nomerRow)(this.NewRow()));
  1241. object[] columnValuesArray = new object[] {
  1242. null,
  1243. lvl_comfort};
  1244. rownomerRow.ItemArray = columnValuesArray;
  1245. this.Rows.Add(rownomerRow);
  1246. return rownomerRow;
  1247. }
  1248. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1249. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1250. public nomerRow FindBynomer_comnat(int nomer_comnat) {
  1251. return ((nomerRow)(this.Rows.Find(new object[] {
  1252. nomer_comnat})));
  1253. }
  1254. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1256. public override global::System.Data.DataTable Clone() {
  1257. nomerDataTable cln = ((nomerDataTable)(base.Clone()));
  1258. cln.InitVars();
  1259. return cln;
  1260. }
  1261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1263. protected override global::System.Data.DataTable CreateInstance() {
  1264. return new nomerDataTable();
  1265. }
  1266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1267. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1268. internal void InitVars() {
  1269. this.columnnomer_comnat = base.Columns["nomer_comnat"];
  1270. this.columnlvl_comfort = base.Columns["lvl_comfort"];
  1271. }
  1272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1274. private void InitClass() {
  1275. this.columnnomer_comnat = new global::System.Data.DataColumn("nomer_comnat", typeof(int), null, global::System.Data.MappingType.Element);
  1276. base.Columns.Add(this.columnnomer_comnat);
  1277. this.columnlvl_comfort = new global::System.Data.DataColumn("lvl_comfort", typeof(int), null, global::System.Data.MappingType.Element);
  1278. base.Columns.Add(this.columnlvl_comfort);
  1279. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1280. this.columnnomer_comnat}, true));
  1281. this.columnnomer_comnat.AutoIncrement = true;
  1282. this.columnnomer_comnat.AutoIncrementSeed = -1;
  1283. this.columnnomer_comnat.AutoIncrementStep = -1;
  1284. this.columnnomer_comnat.AllowDBNull = false;
  1285. this.columnnomer_comnat.ReadOnly = true;
  1286. this.columnnomer_comnat.Unique = true;
  1287. }
  1288. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1289. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1290. public nomerRow NewnomerRow() {
  1291. return ((nomerRow)(this.NewRow()));
  1292. }
  1293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1295. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1296. return new nomerRow(builder);
  1297. }
  1298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1300. protected override global::System.Type GetRowType() {
  1301. return typeof(nomerRow);
  1302. }
  1303. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1304. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1305. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1306. base.OnRowChanged(e);
  1307. if ((this.nomerRowChanged != null)) {
  1308. this.nomerRowChanged(this, new nomerRowChangeEvent(((nomerRow)(e.Row)), e.Action));
  1309. }
  1310. }
  1311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1312. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1313. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1314. base.OnRowChanging(e);
  1315. if ((this.nomerRowChanging != null)) {
  1316. this.nomerRowChanging(this, new nomerRowChangeEvent(((nomerRow)(e.Row)), e.Action));
  1317. }
  1318. }
  1319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1322. base.OnRowDeleted(e);
  1323. if ((this.nomerRowDeleted != null)) {
  1324. this.nomerRowDeleted(this, new nomerRowChangeEvent(((nomerRow)(e.Row)), e.Action));
  1325. }
  1326. }
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1329. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1330. base.OnRowDeleting(e);
  1331. if ((this.nomerRowDeleting != null)) {
  1332. this.nomerRowDeleting(this, new nomerRowChangeEvent(((nomerRow)(e.Row)), e.Action));
  1333. }
  1334. }
  1335. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1336. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1337. public void RemovenomerRow(nomerRow row) {
  1338. this.Rows.Remove(row);
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1343. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1344. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1345. konkursDataSet ds = new konkursDataSet();
  1346. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1347. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1348. any1.MinOccurs = new decimal(0);
  1349. any1.MaxOccurs = decimal.MaxValue;
  1350. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1351. sequence.Items.Add(any1);
  1352. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1353. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1354. any2.MinOccurs = new decimal(1);
  1355. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1356. sequence.Items.Add(any2);
  1357. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1358. attribute1.Name = "namespace";
  1359. attribute1.FixedValue = ds.Namespace;
  1360. type.Attributes.Add(attribute1);
  1361. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1362. attribute2.Name = "tableTypeName";
  1363. attribute2.FixedValue = "nomerDataTable";
  1364. type.Attributes.Add(attribute2);
  1365. type.Particle = sequence;
  1366. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1367. if (xs.Contains(dsSchema.TargetNamespace)) {
  1368. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1369. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1370. try {
  1371. global::System.Xml.Schema.XmlSchema schema = null;
  1372. dsSchema.Write(s1);
  1373. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1374. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1375. s2.SetLength(0);
  1376. schema.Write(s2);
  1377. if ((s1.Length == s2.Length)) {
  1378. s1.Position = 0;
  1379. s2.Position = 0;
  1380. for (; ((s1.Position != s1.Length)
  1381. && (s1.ReadByte() == s2.ReadByte())); ) {
  1382. ;
  1383. }
  1384. if ((s1.Position == s1.Length)) {
  1385. return type;
  1386. }
  1387. }
  1388. }
  1389. }
  1390. finally {
  1391. if ((s1 != null)) {
  1392. s1.Close();
  1393. }
  1394. if ((s2 != null)) {
  1395. s2.Close();
  1396. }
  1397. }
  1398. }
  1399. xs.Add(dsSchema);
  1400. return type;
  1401. }
  1402. }
  1403. /// <summary>
  1404. ///Represents strongly named DataRow class.
  1405. ///</summary>
  1406. public partial class bronirovaniRow : global::System.Data.DataRow {
  1407. private bronirovaniDataTable tablebronirovani;
  1408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1410. internal bronirovaniRow(global::System.Data.DataRowBuilder rb) :
  1411. base(rb) {
  1412. this.tablebronirovani = ((bronirovaniDataTable)(this.Table));
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. public int nomer_kvitancii {
  1417. get {
  1418. try {
  1419. return ((int)(this[this.tablebronirovani.nomer_kvitanciiColumn]));
  1420. }
  1421. catch (global::System.InvalidCastException e) {
  1422. throw new global::System.Data.StrongTypingException("Значение для столбца \'nomer_kvitancii\' в таблице \'bronirovani\' равно DBNull.", e);
  1423. }
  1424. }
  1425. set {
  1426. this[this.tablebronirovani.nomer_kvitanciiColumn] = value;
  1427. }
  1428. }
  1429. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1430. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1431. public System.DateTime date_bronirovania {
  1432. get {
  1433. try {
  1434. return ((global::System.DateTime)(this[this.tablebronirovani.date_bronirovaniaColumn]));
  1435. }
  1436. catch (global::System.InvalidCastException e) {
  1437. throw new global::System.Data.StrongTypingException("Значение для столбца \'date_bronirovania\' в таблице \'bronirovani\' равно DBNull.", e);
  1438. }
  1439. }
  1440. set {
  1441. this[this.tablebronirovani.date_bronirovaniaColumn] = value;
  1442. }
  1443. }
  1444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1446. public System.DateTime date_zaezda {
  1447. get {
  1448. try {
  1449. return ((global::System.DateTime)(this[this.tablebronirovani.date_zaezdaColumn]));
  1450. }
  1451. catch (global::System.InvalidCastException e) {
  1452. throw new global::System.Data.StrongTypingException("Значение для столбца \'date_zaezda\' в таблице \'bronirovani\' равно DBNull.", e);
  1453. }
  1454. }
  1455. set {
  1456. this[this.tablebronirovani.date_zaezdaColumn] = value;
  1457. }
  1458. }
  1459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1461. public int nomer_mesta {
  1462. get {
  1463. try {
  1464. return ((int)(this[this.tablebronirovani.nomer_mestaColumn]));
  1465. }
  1466. catch (global::System.InvalidCastException e) {
  1467. throw new global::System.Data.StrongTypingException("Значение для столбца \'nomer_mesta\' в таблице \'bronirovani\' равно DBNull.", e);
  1468. }
  1469. }
  1470. set {
  1471. this[this.tablebronirovani.nomer_mestaColumn] = value;
  1472. }
  1473. }
  1474. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1475. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1476. public int Id_clients {
  1477. get {
  1478. try {
  1479. return ((int)(this[this.tablebronirovani.Id_clientsColumn]));
  1480. }
  1481. catch (global::System.InvalidCastException e) {
  1482. throw new global::System.Data.StrongTypingException("Значение для столбца \'Id_clients\' в таблице \'bronirovani\' равно DBNull.", e);
  1483. }
  1484. }
  1485. set {
  1486. this[this.tablebronirovani.Id_clientsColumn] = value;
  1487. }
  1488. }
  1489. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1490. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1491. public int col_days {
  1492. get {
  1493. try {
  1494. return ((int)(this[this.tablebronirovani.col_daysColumn]));
  1495. }
  1496. catch (global::System.InvalidCastException e) {
  1497. throw new global::System.Data.StrongTypingException("Значение для столбца \'col_days\' в таблице \'bronirovani\' равно DBNull.", e);
  1498. }
  1499. }
  1500. set {
  1501. this[this.tablebronirovani.col_daysColumn] = value;
  1502. }
  1503. }
  1504. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1505. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1506. public System.DateTime date_oplata {
  1507. get {
  1508. try {
  1509. return ((global::System.DateTime)(this[this.tablebronirovani.date_oplataColumn]));
  1510. }
  1511. catch (global::System.InvalidCastException e) {
  1512. throw new global::System.Data.StrongTypingException("Значение для столбца \'date_oplata\' в таблице \'bronirovani\' равно DBNull.", e);
  1513. }
  1514. }
  1515. set {
  1516. this[this.tablebronirovani.date_oplataColumn] = value;
  1517. }
  1518. }
  1519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1521. public string sale_zaranie {
  1522. get {
  1523. try {
  1524. return ((string)(this[this.tablebronirovani.sale_zaranieColumn]));
  1525. }
  1526. catch (global::System.InvalidCastException e) {
  1527. throw new global::System.Data.StrongTypingException("Значение для столбца \'sale_zaranie\' в таблице \'bronirovani\' равно DBNull.", e);
  1528. }
  1529. }
  1530. set {
  1531. this[this.tablebronirovani.sale_zaranieColumn] = value;
  1532. }
  1533. }
  1534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1536. public string sale_season {
  1537. get {
  1538. try {
  1539. return ((string)(this[this.tablebronirovani.sale_seasonColumn]));
  1540. }
  1541. catch (global::System.InvalidCastException e) {
  1542. throw new global::System.Data.StrongTypingException("Значение для столбца \'sale_season\' в таблице \'bronirovani\' равно DBNull.", e);
  1543. }
  1544. }
  1545. set {
  1546. this[this.tablebronirovani.sale_seasonColumn] = value;
  1547. }
  1548. }
  1549. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1550. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1551. public bool Isnomer_kvitanciiNull() {
  1552. return this.IsNull(this.tablebronirovani.nomer_kvitanciiColumn);
  1553. }
  1554. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1555. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1556. public void Setnomer_kvitanciiNull() {
  1557. this[this.tablebronirovani.nomer_kvitanciiColumn] = global::System.Convert.DBNull;
  1558. }
  1559. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1560. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1561. public bool Isdate_bronirovaniaNull() {
  1562. return this.IsNull(this.tablebronirovani.date_bronirovaniaColumn);
  1563. }
  1564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1566. public void Setdate_bronirovaniaNull() {
  1567. this[this.tablebronirovani.date_bronirovaniaColumn] = global::System.Convert.DBNull;
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public bool Isdate_zaezdaNull() {
  1572. return this.IsNull(this.tablebronirovani.date_zaezdaColumn);
  1573. }
  1574. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1575. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1576. public void Setdate_zaezdaNull() {
  1577. this[this.tablebronirovani.date_zaezdaColumn] = global::System.Convert.DBNull;
  1578. }
  1579. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1580. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1581. public bool Isnomer_mestaNull() {
  1582. return this.IsNull(this.tablebronirovani.nomer_mestaColumn);
  1583. }
  1584. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1585. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1586. public void Setnomer_mestaNull() {
  1587. this[this.tablebronirovani.nomer_mestaColumn] = global::System.Convert.DBNull;
  1588. }
  1589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1591. public bool IsId_clientsNull() {
  1592. return this.IsNull(this.tablebronirovani.Id_clientsColumn);
  1593. }
  1594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1595. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1596. public void SetId_clientsNull() {
  1597. this[this.tablebronirovani.Id_clientsColumn] = global::System.Convert.DBNull;
  1598. }
  1599. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1600. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1601. public bool Iscol_daysNull() {
  1602. return this.IsNull(this.tablebronirovani.col_daysColumn);
  1603. }
  1604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1606. public void Setcol_daysNull() {
  1607. this[this.tablebronirovani.col_daysColumn] = global::System.Convert.DBNull;
  1608. }
  1609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1611. public bool Isdate_oplataNull() {
  1612. return this.IsNull(this.tablebronirovani.date_oplataColumn);
  1613. }
  1614. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1615. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1616. public void Setdate_oplataNull() {
  1617. this[this.tablebronirovani.date_oplataColumn] = global::System.Convert.DBNull;
  1618. }
  1619. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1620. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1621. public bool Issale_zaranieNull() {
  1622. return this.IsNull(this.tablebronirovani.sale_zaranieColumn);
  1623. }
  1624. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1625. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1626. public void Setsale_zaranieNull() {
  1627. this[this.tablebronirovani.sale_zaranieColumn] = global::System.Convert.DBNull;
  1628. }
  1629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1631. public bool Issale_seasonNull() {
  1632. return this.IsNull(this.tablebronirovani.sale_seasonColumn);
  1633. }
  1634. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1635. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1636. public void Setsale_seasonNull() {
  1637. this[this.tablebronirovani.sale_seasonColumn] = global::System.Convert.DBNull;
  1638. }
  1639. }
  1640. /// <summary>
  1641. ///Represents strongly named DataRow class.
  1642. ///</summary>
  1643. public partial class comfortRow : global::System.Data.DataRow {
  1644. private comfortDataTable tablecomfort;
  1645. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1646. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1647. internal comfortRow(global::System.Data.DataRowBuilder rb) :
  1648. base(rb) {
  1649. this.tablecomfort = ((comfortDataTable)(this.Table));
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. public int lvl_comfort {
  1654. get {
  1655. return ((int)(this[this.tablecomfort.lvl_comfortColumn]));
  1656. }
  1657. set {
  1658. this[this.tablecomfort.lvl_comfortColumn] = value;
  1659. }
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. public string price_broni {
  1664. get {
  1665. try {
  1666. return ((string)(this[this.tablecomfort.price_broniColumn]));
  1667. }
  1668. catch (global::System.InvalidCastException e) {
  1669. throw new global::System.Data.StrongTypingException("Значение для столбца \'price_broni\' в таблице \'comfort\' равно DBNull.", e);
  1670. }
  1671. }
  1672. set {
  1673. this[this.tablecomfort.price_broniColumn] = value;
  1674. }
  1675. }
  1676. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1677. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1678. public string price_projiv {
  1679. get {
  1680. try {
  1681. return ((string)(this[this.tablecomfort.price_projivColumn]));
  1682. }
  1683. catch (global::System.InvalidCastException e) {
  1684. throw new global::System.Data.StrongTypingException("Значение для столбца \'price_projiv\' в таблице \'comfort\' равно DBNull.", e);
  1685. }
  1686. }
  1687. set {
  1688. this[this.tablecomfort.price_projivColumn] = value;
  1689. }
  1690. }
  1691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1693. public bool Isprice_broniNull() {
  1694. return this.IsNull(this.tablecomfort.price_broniColumn);
  1695. }
  1696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1698. public void Setprice_broniNull() {
  1699. this[this.tablecomfort.price_broniColumn] = global::System.Convert.DBNull;
  1700. }
  1701. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1702. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1703. public bool Isprice_projivNull() {
  1704. return this.IsNull(this.tablecomfort.price_projivColumn);
  1705. }
  1706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1708. public void Setprice_projivNull() {
  1709. this[this.tablecomfort.price_projivColumn] = global::System.Convert.DBNull;
  1710. }
  1711. }
  1712. /// <summary>
  1713. ///Represents strongly named DataRow class.
  1714. ///</summary>
  1715. public partial class mestaRow : global::System.Data.DataRow {
  1716. private mestaDataTable tablemesta;
  1717. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1718. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1719. internal mestaRow(global::System.Data.DataRowBuilder rb) :
  1720. base(rb) {
  1721. this.tablemesta = ((mestaDataTable)(this.Table));
  1722. }
  1723. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1724. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1725. public int id_mesta {
  1726. get {
  1727. return ((int)(this[this.tablemesta.id_mestaColumn]));
  1728. }
  1729. set {
  1730. this[this.tablemesta.id_mestaColumn] = value;
  1731. }
  1732. }
  1733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1735. public int nomer_comnat {
  1736. get {
  1737. try {
  1738. return ((int)(this[this.tablemesta.nomer_comnatColumn]));
  1739. }
  1740. catch (global::System.InvalidCastException e) {
  1741. throw new global::System.Data.StrongTypingException("Значение для столбца \'nomer_comnat\' в таблице \'mesta\' равно DBNull.", e);
  1742. }
  1743. }
  1744. set {
  1745. this[this.tablemesta.nomer_comnatColumn] = value;
  1746. }
  1747. }
  1748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1750. public bool Isnomer_comnatNull() {
  1751. return this.IsNull(this.tablemesta.nomer_comnatColumn);
  1752. }
  1753. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1754. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1755. public void Setnomer_comnatNull() {
  1756. this[this.tablemesta.nomer_comnatColumn] = global::System.Convert.DBNull;
  1757. }
  1758. }
  1759. /// <summary>
  1760. ///Represents strongly named DataRow class.
  1761. ///</summary>
  1762. public partial class nomerRow : global::System.Data.DataRow {
  1763. private nomerDataTable tablenomer;
  1764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1766. internal nomerRow(global::System.Data.DataRowBuilder rb) :
  1767. base(rb) {
  1768. this.tablenomer = ((nomerDataTable)(this.Table));
  1769. }
  1770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1772. public int nomer_comnat {
  1773. get {
  1774. return ((int)(this[this.tablenomer.nomer_comnatColumn]));
  1775. }
  1776. set {
  1777. this[this.tablenomer.nomer_comnatColumn] = value;
  1778. }
  1779. }
  1780. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1781. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1782. public int lvl_comfort {
  1783. get {
  1784. try {
  1785. return ((int)(this[this.tablenomer.lvl_comfortColumn]));
  1786. }
  1787. catch (global::System.InvalidCastException e) {
  1788. throw new global::System.Data.StrongTypingException("Значение для столбца \'lvl_comfort\' в таблице \'nomer\' равно DBNull.", e);
  1789. }
  1790. }
  1791. set {
  1792. this[this.tablenomer.lvl_comfortColumn] = value;
  1793. }
  1794. }
  1795. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1796. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1797. public bool Islvl_comfortNull() {
  1798. return this.IsNull(this.tablenomer.lvl_comfortColumn);
  1799. }
  1800. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1801. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1802. public void Setlvl_comfortNull() {
  1803. this[this.tablenomer.lvl_comfortColumn] = global::System.Convert.DBNull;
  1804. }
  1805. }
  1806. /// <summary>
  1807. ///Row event argument class
  1808. ///</summary>
  1809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1810. public class bronirovaniRowChangeEvent : global::System.EventArgs {
  1811. private bronirovaniRow eventRow;
  1812. private global::System.Data.DataRowAction eventAction;
  1813. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1814. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1815. public bronirovaniRowChangeEvent(bronirovaniRow row, global::System.Data.DataRowAction action) {
  1816. this.eventRow = row;
  1817. this.eventAction = action;
  1818. }
  1819. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1820. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1821. public bronirovaniRow Row {
  1822. get {
  1823. return this.eventRow;
  1824. }
  1825. }
  1826. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1827. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1828. public global::System.Data.DataRowAction Action {
  1829. get {
  1830. return this.eventAction;
  1831. }
  1832. }
  1833. }
  1834. /// <summary>
  1835. ///Row event argument class
  1836. ///</summary>
  1837. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1838. public class comfortRowChangeEvent : global::System.EventArgs {
  1839. private comfortRow eventRow;
  1840. private global::System.Data.DataRowAction eventAction;
  1841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1843. public comfortRowChangeEvent(comfortRow row, global::System.Data.DataRowAction action) {
  1844. this.eventRow = row;
  1845. this.eventAction = action;
  1846. }
  1847. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1848. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1849. public comfortRow Row {
  1850. get {
  1851. return this.eventRow;
  1852. }
  1853. }
  1854. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1855. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1856. public global::System.Data.DataRowAction Action {
  1857. get {
  1858. return this.eventAction;
  1859. }
  1860. }
  1861. }
  1862. /// <summary>
  1863. ///Row event argument class
  1864. ///</summary>
  1865. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1866. public class mestaRowChangeEvent : global::System.EventArgs {
  1867. private mestaRow eventRow;
  1868. private global::System.Data.DataRowAction eventAction;
  1869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1871. public mestaRowChangeEvent(mestaRow row, global::System.Data.DataRowAction action) {
  1872. this.eventRow = row;
  1873. this.eventAction = action;
  1874. }
  1875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1877. public mestaRow Row {
  1878. get {
  1879. return this.eventRow;
  1880. }
  1881. }
  1882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1884. public global::System.Data.DataRowAction Action {
  1885. get {
  1886. return this.eventAction;
  1887. }
  1888. }
  1889. }
  1890. /// <summary>
  1891. ///Row event argument class
  1892. ///</summary>
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. public class nomerRowChangeEvent : global::System.EventArgs {
  1895. private nomerRow eventRow;
  1896. private global::System.Data.DataRowAction eventAction;
  1897. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1898. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1899. public nomerRowChangeEvent(nomerRow row, global::System.Data.DataRowAction action) {
  1900. this.eventRow = row;
  1901. this.eventAction = action;
  1902. }
  1903. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1905. public nomerRow Row {
  1906. get {
  1907. return this.eventRow;
  1908. }
  1909. }
  1910. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1911. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1912. public global::System.Data.DataRowAction Action {
  1913. get {
  1914. return this.eventAction;
  1915. }
  1916. }
  1917. }
  1918. }
  1919. }
  1920. namespace testkonkurs1.konkursDataSetTableAdapters {
  1921. /// <summary>
  1922. ///Represents the connection and commands used to retrieve and save data.
  1923. ///</summary>
  1924. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  1925. [global::System.ComponentModel.ToolboxItem(true)]
  1926. [global::System.ComponentModel.DataObjectAttribute(true)]
  1927. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  1928. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  1929. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  1930. public partial class bronirovaniTableAdapter : global::System.ComponentModel.Component {
  1931. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  1932. private global::System.Data.SqlClient.SqlConnection _connection;
  1933. private global::System.Data.SqlClient.SqlTransaction _transaction;
  1934. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  1935. private bool _clearBeforeFill;
  1936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1938. public bronirovaniTableAdapter() {
  1939. this.ClearBeforeFill = true;
  1940. }
  1941. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1942. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1943. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  1944. get {
  1945. if ((this._adapter == null)) {
  1946. this.InitAdapter();
  1947. }
  1948. return this._adapter;
  1949. }
  1950. }
  1951. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1952. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1953. internal global::System.Data.SqlClient.SqlConnection Connection {
  1954. get {
  1955. if ((this._connection == null)) {
  1956. this.InitConnection();
  1957. }
  1958. return this._connection;
  1959. }
  1960. set {
  1961. this._connection = value;
  1962. if ((this.Adapter.InsertCommand != null)) {
  1963. this.Adapter.InsertCommand.Connection = value;
  1964. }
  1965. if ((this.Adapter.DeleteCommand != null)) {
  1966. this.Adapter.DeleteCommand.Connection = value;
  1967. }
  1968. if ((this.Adapter.UpdateCommand != null)) {
  1969. this.Adapter.UpdateCommand.Connection = value;
  1970. }
  1971. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1972. if ((this.CommandCollection[i] != null)) {
  1973. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  1974. }
  1975. }
  1976. }
  1977. }
  1978. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1979. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1980. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  1981. get {
  1982. return this._transaction;
  1983. }
  1984. set {
  1985. this._transaction = value;
  1986. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  1987. this.CommandCollection[i].Transaction = this._transaction;
  1988. }
  1989. if (((this.Adapter != null)
  1990. && (this.Adapter.DeleteCommand != null))) {
  1991. this.Adapter.DeleteCommand.Transaction = this._transaction;
  1992. }
  1993. if (((this.Adapter != null)
  1994. && (this.Adapter.InsertCommand != null))) {
  1995. this.Adapter.InsertCommand.Transaction = this._transaction;
  1996. }
  1997. if (((this.Adapter != null)
  1998. && (this.Adapter.UpdateCommand != null))) {
  1999. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2000. }
  2001. }
  2002. }
  2003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2005. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2006. get {
  2007. if ((this._commandCollection == null)) {
  2008. this.InitCommandCollection();
  2009. }
  2010. return this._commandCollection;
  2011. }
  2012. }
  2013. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2014. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2015. public bool ClearBeforeFill {
  2016. get {
  2017. return this._clearBeforeFill;
  2018. }
  2019. set {
  2020. this._clearBeforeFill = value;
  2021. }
  2022. }
  2023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2025. private void InitAdapter() {
  2026. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2027. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2028. tableMapping.SourceTable = "Table";
  2029. tableMapping.DataSetTable = "bronirovani";
  2030. tableMapping.ColumnMappings.Add("nomer_kvitancii", "nomer_kvitancii");
  2031. tableMapping.ColumnMappings.Add("date_bronirovania", "date_bronirovania");
  2032. tableMapping.ColumnMappings.Add("date_zaezda", "date_zaezda");
  2033. tableMapping.ColumnMappings.Add("nomer_mesta", "nomer_mesta");
  2034. tableMapping.ColumnMappings.Add("Id_clients", "Id_clients");
  2035. tableMapping.ColumnMappings.Add("col_days", "col_days");
  2036. tableMapping.ColumnMappings.Add("date_oplata", "date_oplata");
  2037. tableMapping.ColumnMappings.Add("sale_zaranie", "sale_zaranie");
  2038. tableMapping.ColumnMappings.Add("sale_season", "sale_season");
  2039. this._adapter.TableMappings.Add(tableMapping);
  2040. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2041. this._adapter.InsertCommand.Connection = this.Connection;
  2042. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[bronirovani] ([nomer_kvitancii], [date_bronirovania], [date_zaezda], [nomer_mesta], [Id_clients], [col_days], [date_oplata], [sale_zaranie], [sale_season]) VALUES (@nomer_kvitancii, @date_bronirovania, @date_zaezda, @nomer_mesta, @Id_clients, @col_days, @date_oplata, @sale_zaranie, @sale_season)";
  2043. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2044. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomer_kvitancii", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_kvitancii", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2045. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@date_bronirovania", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "date_bronirovania", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2046. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@date_zaezda", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "date_zaezda", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2047. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomer_mesta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_mesta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2048. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Id_clients", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Id_clients", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2049. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@col_days", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "col_days", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2050. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@date_oplata", global::System.Data.SqlDbType.Date, 0, global::System.Data.ParameterDirection.Input, 0, 0, "date_oplata", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2051. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sale_zaranie", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sale_zaranie", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2052. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@sale_season", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "sale_season", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2053. }
  2054. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2055. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2056. private void InitConnection() {
  2057. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2058. this._connection.ConnectionString = global::testkonkurs1.Properties.Settings.Default.konkursConnectionString;
  2059. }
  2060. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2061. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2062. private void InitCommandCollection() {
  2063. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2064. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2065. this._commandCollection[0].Connection = this.Connection;
  2066. this._commandCollection[0].CommandText = "SELECT nomer_kvitancii, date_bronirovania, date_zaezda, nomer_mesta, Id_clients, " +
  2067. "col_days, date_oplata, sale_zaranie, sale_season FROM dbo.bronirovani";
  2068. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2069. }
  2070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2072. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2073. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2074. public virtual int Fill(konkursDataSet.bronirovaniDataTable dataTable) {
  2075. this.Adapter.SelectCommand = this.CommandCollection[0];
  2076. if ((this.ClearBeforeFill == true)) {
  2077. dataTable.Clear();
  2078. }
  2079. int returnValue = this.Adapter.Fill(dataTable);
  2080. return returnValue;
  2081. }
  2082. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2083. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2084. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2085. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2086. public virtual konkursDataSet.bronirovaniDataTable GetData() {
  2087. this.Adapter.SelectCommand = this.CommandCollection[0];
  2088. konkursDataSet.bronirovaniDataTable dataTable = new konkursDataSet.bronirovaniDataTable();
  2089. this.Adapter.Fill(dataTable);
  2090. return dataTable;
  2091. }
  2092. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2093. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2094. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2095. public virtual int Update(konkursDataSet.bronirovaniDataTable dataTable) {
  2096. return this.Adapter.Update(dataTable);
  2097. }
  2098. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2099. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2100. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2101. public virtual int Update(konkursDataSet dataSet) {
  2102. return this.Adapter.Update(dataSet, "bronirovani");
  2103. }
  2104. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2106. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2107. public virtual int Update(global::System.Data.DataRow dataRow) {
  2108. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2109. dataRow});
  2110. }
  2111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2112. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2113. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2114. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2115. return this.Adapter.Update(dataRows);
  2116. }
  2117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2119. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2120. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2121. public virtual int Insert(global::System.Nullable<int> nomer_kvitancii, global::System.Nullable<global::System.DateTime> date_bronirovania, global::System.Nullable<global::System.DateTime> date_zaezda, global::System.Nullable<int> nomer_mesta, global::System.Nullable<int> Id_clients, global::System.Nullable<int> col_days, global::System.Nullable<global::System.DateTime> date_oplata, string sale_zaranie, string sale_season) {
  2122. if ((nomer_kvitancii.HasValue == true)) {
  2123. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(nomer_kvitancii.Value));
  2124. }
  2125. else {
  2126. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2127. }
  2128. if ((date_bronirovania.HasValue == true)) {
  2129. this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(date_bronirovania.Value));
  2130. }
  2131. else {
  2132. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2133. }
  2134. if ((date_zaezda.HasValue == true)) {
  2135. this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(date_zaezda.Value));
  2136. }
  2137. else {
  2138. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2139. }
  2140. if ((nomer_mesta.HasValue == true)) {
  2141. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(nomer_mesta.Value));
  2142. }
  2143. else {
  2144. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  2145. }
  2146. if ((Id_clients.HasValue == true)) {
  2147. this.Adapter.InsertCommand.Parameters[4].Value = ((int)(Id_clients.Value));
  2148. }
  2149. else {
  2150. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  2151. }
  2152. if ((col_days.HasValue == true)) {
  2153. this.Adapter.InsertCommand.Parameters[5].Value = ((int)(col_days.Value));
  2154. }
  2155. else {
  2156. this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
  2157. }
  2158. if ((date_oplata.HasValue == true)) {
  2159. this.Adapter.InsertCommand.Parameters[6].Value = ((System.DateTime)(date_oplata.Value));
  2160. }
  2161. else {
  2162. this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
  2163. }
  2164. if ((sale_zaranie == null)) {
  2165. this.Adapter.InsertCommand.Parameters[7].Value = global::System.DBNull.Value;
  2166. }
  2167. else {
  2168. this.Adapter.InsertCommand.Parameters[7].Value = ((string)(sale_zaranie));
  2169. }
  2170. if ((sale_season == null)) {
  2171. this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
  2172. }
  2173. else {
  2174. this.Adapter.InsertCommand.Parameters[8].Value = ((string)(sale_season));
  2175. }
  2176. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2177. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2178. != global::System.Data.ConnectionState.Open)) {
  2179. this.Adapter.InsertCommand.Connection.Open();
  2180. }
  2181. try {
  2182. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2183. return returnValue;
  2184. }
  2185. finally {
  2186. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2187. this.Adapter.InsertCommand.Connection.Close();
  2188. }
  2189. }
  2190. }
  2191. }
  2192. /// <summary>
  2193. ///Represents the connection and commands used to retrieve and save data.
  2194. ///</summary>
  2195. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2196. [global::System.ComponentModel.ToolboxItem(true)]
  2197. [global::System.ComponentModel.DataObjectAttribute(true)]
  2198. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2199. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2200. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2201. public partial class comfortTableAdapter : global::System.ComponentModel.Component {
  2202. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2203. private global::System.Data.SqlClient.SqlConnection _connection;
  2204. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2205. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2206. private bool _clearBeforeFill;
  2207. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2208. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2209. public comfortTableAdapter() {
  2210. this.ClearBeforeFill = true;
  2211. }
  2212. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2213. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2214. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2215. get {
  2216. if ((this._adapter == null)) {
  2217. this.InitAdapter();
  2218. }
  2219. return this._adapter;
  2220. }
  2221. }
  2222. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2223. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2224. internal global::System.Data.SqlClient.SqlConnection Connection {
  2225. get {
  2226. if ((this._connection == null)) {
  2227. this.InitConnection();
  2228. }
  2229. return this._connection;
  2230. }
  2231. set {
  2232. this._connection = value;
  2233. if ((this.Adapter.InsertCommand != null)) {
  2234. this.Adapter.InsertCommand.Connection = value;
  2235. }
  2236. if ((this.Adapter.DeleteCommand != null)) {
  2237. this.Adapter.DeleteCommand.Connection = value;
  2238. }
  2239. if ((this.Adapter.UpdateCommand != null)) {
  2240. this.Adapter.UpdateCommand.Connection = value;
  2241. }
  2242. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2243. if ((this.CommandCollection[i] != null)) {
  2244. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2245. }
  2246. }
  2247. }
  2248. }
  2249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2251. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2252. get {
  2253. return this._transaction;
  2254. }
  2255. set {
  2256. this._transaction = value;
  2257. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2258. this.CommandCollection[i].Transaction = this._transaction;
  2259. }
  2260. if (((this.Adapter != null)
  2261. && (this.Adapter.DeleteCommand != null))) {
  2262. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2263. }
  2264. if (((this.Adapter != null)
  2265. && (this.Adapter.InsertCommand != null))) {
  2266. this.Adapter.InsertCommand.Transaction = this._transaction;
  2267. }
  2268. if (((this.Adapter != null)
  2269. && (this.Adapter.UpdateCommand != null))) {
  2270. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2271. }
  2272. }
  2273. }
  2274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2276. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2277. get {
  2278. if ((this._commandCollection == null)) {
  2279. this.InitCommandCollection();
  2280. }
  2281. return this._commandCollection;
  2282. }
  2283. }
  2284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2286. public bool ClearBeforeFill {
  2287. get {
  2288. return this._clearBeforeFill;
  2289. }
  2290. set {
  2291. this._clearBeforeFill = value;
  2292. }
  2293. }
  2294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2295. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2296. private void InitAdapter() {
  2297. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2298. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2299. tableMapping.SourceTable = "Table";
  2300. tableMapping.DataSetTable = "comfort";
  2301. tableMapping.ColumnMappings.Add("lvl_comfort", "lvl_comfort");
  2302. tableMapping.ColumnMappings.Add("price_broni", "price_broni");
  2303. tableMapping.ColumnMappings.Add("price_projiv", "price_projiv");
  2304. this._adapter.TableMappings.Add(tableMapping);
  2305. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2306. this._adapter.InsertCommand.Connection = this.Connection;
  2307. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[comfort] ([price_broni], [price_projiv]) VALUES (@price_broni," +
  2308. " @price_projiv)";
  2309. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2310. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@price_broni", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "price_broni", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2311. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@price_projiv", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "price_projiv", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2312. }
  2313. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2315. private void InitConnection() {
  2316. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2317. this._connection.ConnectionString = global::testkonkurs1.Properties.Settings.Default.konkursConnectionString;
  2318. }
  2319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2321. private void InitCommandCollection() {
  2322. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2323. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2324. this._commandCollection[0].Connection = this.Connection;
  2325. this._commandCollection[0].CommandText = "SELECT lvl_comfort, price_broni, price_projiv FROM dbo.comfort";
  2326. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2330. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2331. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2332. public virtual int Fill(konkursDataSet.comfortDataTable dataTable) {
  2333. this.Adapter.SelectCommand = this.CommandCollection[0];
  2334. if ((this.ClearBeforeFill == true)) {
  2335. dataTable.Clear();
  2336. }
  2337. int returnValue = this.Adapter.Fill(dataTable);
  2338. return returnValue;
  2339. }
  2340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2342. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2343. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2344. public virtual konkursDataSet.comfortDataTable GetData() {
  2345. this.Adapter.SelectCommand = this.CommandCollection[0];
  2346. konkursDataSet.comfortDataTable dataTable = new konkursDataSet.comfortDataTable();
  2347. this.Adapter.Fill(dataTable);
  2348. return dataTable;
  2349. }
  2350. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2351. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2352. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2353. public virtual int Update(konkursDataSet.comfortDataTable dataTable) {
  2354. return this.Adapter.Update(dataTable);
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2358. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2359. public virtual int Update(konkursDataSet dataSet) {
  2360. return this.Adapter.Update(dataSet, "comfort");
  2361. }
  2362. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2363. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2364. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2365. public virtual int Update(global::System.Data.DataRow dataRow) {
  2366. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2367. dataRow});
  2368. }
  2369. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2370. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2371. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2372. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2373. return this.Adapter.Update(dataRows);
  2374. }
  2375. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2376. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2377. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2378. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2379. public virtual int Insert(string price_broni, string price_projiv) {
  2380. if ((price_broni == null)) {
  2381. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2382. }
  2383. else {
  2384. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(price_broni));
  2385. }
  2386. if ((price_projiv == null)) {
  2387. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  2388. }
  2389. else {
  2390. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(price_projiv));
  2391. }
  2392. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2393. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2394. != global::System.Data.ConnectionState.Open)) {
  2395. this.Adapter.InsertCommand.Connection.Open();
  2396. }
  2397. try {
  2398. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2399. return returnValue;
  2400. }
  2401. finally {
  2402. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2403. this.Adapter.InsertCommand.Connection.Close();
  2404. }
  2405. }
  2406. }
  2407. }
  2408. /// <summary>
  2409. ///Represents the connection and commands used to retrieve and save data.
  2410. ///</summary>
  2411. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2412. [global::System.ComponentModel.ToolboxItem(true)]
  2413. [global::System.ComponentModel.DataObjectAttribute(true)]
  2414. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2415. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2416. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2417. public partial class mestaTableAdapter : global::System.ComponentModel.Component {
  2418. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2419. private global::System.Data.SqlClient.SqlConnection _connection;
  2420. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2421. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2422. private bool _clearBeforeFill;
  2423. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2424. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2425. public mestaTableAdapter() {
  2426. this.ClearBeforeFill = true;
  2427. }
  2428. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2429. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2430. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2431. get {
  2432. if ((this._adapter == null)) {
  2433. this.InitAdapter();
  2434. }
  2435. return this._adapter;
  2436. }
  2437. }
  2438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2440. internal global::System.Data.SqlClient.SqlConnection Connection {
  2441. get {
  2442. if ((this._connection == null)) {
  2443. this.InitConnection();
  2444. }
  2445. return this._connection;
  2446. }
  2447. set {
  2448. this._connection = value;
  2449. if ((this.Adapter.InsertCommand != null)) {
  2450. this.Adapter.InsertCommand.Connection = value;
  2451. }
  2452. if ((this.Adapter.DeleteCommand != null)) {
  2453. this.Adapter.DeleteCommand.Connection = value;
  2454. }
  2455. if ((this.Adapter.UpdateCommand != null)) {
  2456. this.Adapter.UpdateCommand.Connection = value;
  2457. }
  2458. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2459. if ((this.CommandCollection[i] != null)) {
  2460. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2461. }
  2462. }
  2463. }
  2464. }
  2465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2467. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2468. get {
  2469. return this._transaction;
  2470. }
  2471. set {
  2472. this._transaction = value;
  2473. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2474. this.CommandCollection[i].Transaction = this._transaction;
  2475. }
  2476. if (((this.Adapter != null)
  2477. && (this.Adapter.DeleteCommand != null))) {
  2478. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2479. }
  2480. if (((this.Adapter != null)
  2481. && (this.Adapter.InsertCommand != null))) {
  2482. this.Adapter.InsertCommand.Transaction = this._transaction;
  2483. }
  2484. if (((this.Adapter != null)
  2485. && (this.Adapter.UpdateCommand != null))) {
  2486. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2487. }
  2488. }
  2489. }
  2490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2491. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2492. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2493. get {
  2494. if ((this._commandCollection == null)) {
  2495. this.InitCommandCollection();
  2496. }
  2497. return this._commandCollection;
  2498. }
  2499. }
  2500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2502. public bool ClearBeforeFill {
  2503. get {
  2504. return this._clearBeforeFill;
  2505. }
  2506. set {
  2507. this._clearBeforeFill = value;
  2508. }
  2509. }
  2510. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2512. private void InitAdapter() {
  2513. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2514. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2515. tableMapping.SourceTable = "Table";
  2516. tableMapping.DataSetTable = "mesta";
  2517. tableMapping.ColumnMappings.Add("id_mesta", "id_mesta");
  2518. tableMapping.ColumnMappings.Add("nomer_comnat", "nomer_comnat");
  2519. this._adapter.TableMappings.Add(tableMapping);
  2520. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2521. this._adapter.DeleteCommand.Connection = this.Connection;
  2522. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[mesta] WHERE (([id_mesta] = @Original_id_mesta) AND ((@IsNull_" +
  2523. "nomer_comnat = 1 AND [nomer_comnat] IS NULL) OR ([nomer_comnat] = @Original_nome" +
  2524. "r_comnat)))";
  2525. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2526. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_mesta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_mesta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2527. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2528. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2529. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2530. this._adapter.InsertCommand.Connection = this.Connection;
  2531. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[mesta] ([nomer_comnat]) VALUES (@nomer_comnat);\r\nSELECT id_mes" +
  2532. "ta, nomer_comnat FROM mesta WHERE (id_mesta = SCOPE_IDENTITY())";
  2533. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2534. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2535. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2536. this._adapter.UpdateCommand.Connection = this.Connection;
  2537. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[mesta] SET [nomer_comnat] = @nomer_comnat WHERE (([id_mesta] = @Original_id_mesta) AND ((@IsNull_nomer_comnat = 1 AND [nomer_comnat] IS NULL) OR ([nomer_comnat] = @Original_nomer_comnat)));
  2538. SELECT id_mesta, nomer_comnat FROM mesta WHERE (id_mesta = @id_mesta)";
  2539. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2540. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2541. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_id_mesta", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "id_mesta", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2542. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2543. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2544. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@id_mesta", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "id_mesta", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2545. }
  2546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2547. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2548. private void InitConnection() {
  2549. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2550. this._connection.ConnectionString = global::testkonkurs1.Properties.Settings.Default.konkursConnectionString;
  2551. }
  2552. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2553. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2554. private void InitCommandCollection() {
  2555. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2556. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2557. this._commandCollection[0].Connection = this.Connection;
  2558. this._commandCollection[0].CommandText = "SELECT id_mesta, nomer_comnat FROM dbo.mesta";
  2559. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2560. }
  2561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2562. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2563. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2564. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2565. public virtual int Fill(konkursDataSet.mestaDataTable dataTable) {
  2566. this.Adapter.SelectCommand = this.CommandCollection[0];
  2567. if ((this.ClearBeforeFill == true)) {
  2568. dataTable.Clear();
  2569. }
  2570. int returnValue = this.Adapter.Fill(dataTable);
  2571. return returnValue;
  2572. }
  2573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2574. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2575. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2576. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2577. public virtual konkursDataSet.mestaDataTable GetData() {
  2578. this.Adapter.SelectCommand = this.CommandCollection[0];
  2579. konkursDataSet.mestaDataTable dataTable = new konkursDataSet.mestaDataTable();
  2580. this.Adapter.Fill(dataTable);
  2581. return dataTable;
  2582. }
  2583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2585. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2586. public virtual int Update(konkursDataSet.mestaDataTable dataTable) {
  2587. return this.Adapter.Update(dataTable);
  2588. }
  2589. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2590. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2591. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2592. public virtual int Update(konkursDataSet dataSet) {
  2593. return this.Adapter.Update(dataSet, "mesta");
  2594. }
  2595. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2596. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2597. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2598. public virtual int Update(global::System.Data.DataRow dataRow) {
  2599. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2600. dataRow});
  2601. }
  2602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2604. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2605. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2606. return this.Adapter.Update(dataRows);
  2607. }
  2608. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2610. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2611. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2612. public virtual int Delete(int Original_id_mesta, global::System.Nullable<int> Original_nomer_comnat) {
  2613. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_id_mesta));
  2614. if ((Original_nomer_comnat.HasValue == true)) {
  2615. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  2616. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_nomer_comnat.Value));
  2617. }
  2618. else {
  2619. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  2620. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  2621. }
  2622. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2623. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2624. != global::System.Data.ConnectionState.Open)) {
  2625. this.Adapter.DeleteCommand.Connection.Open();
  2626. }
  2627. try {
  2628. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2629. return returnValue;
  2630. }
  2631. finally {
  2632. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2633. this.Adapter.DeleteCommand.Connection.Close();
  2634. }
  2635. }
  2636. }
  2637. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2638. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2639. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2640. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2641. public virtual int Insert(global::System.Nullable<int> nomer_comnat) {
  2642. if ((nomer_comnat.HasValue == true)) {
  2643. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(nomer_comnat.Value));
  2644. }
  2645. else {
  2646. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2647. }
  2648. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2649. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2650. != global::System.Data.ConnectionState.Open)) {
  2651. this.Adapter.InsertCommand.Connection.Open();
  2652. }
  2653. try {
  2654. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2655. return returnValue;
  2656. }
  2657. finally {
  2658. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2659. this.Adapter.InsertCommand.Connection.Close();
  2660. }
  2661. }
  2662. }
  2663. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2664. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2665. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2666. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2667. public virtual int Update(global::System.Nullable<int> nomer_comnat, int Original_id_mesta, global::System.Nullable<int> Original_nomer_comnat, int id_mesta) {
  2668. if ((nomer_comnat.HasValue == true)) {
  2669. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(nomer_comnat.Value));
  2670. }
  2671. else {
  2672. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  2673. }
  2674. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_id_mesta));
  2675. if ((Original_nomer_comnat.HasValue == true)) {
  2676. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  2677. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_nomer_comnat.Value));
  2678. }
  2679. else {
  2680. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  2681. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  2682. }
  2683. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(id_mesta));
  2684. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2685. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2686. != global::System.Data.ConnectionState.Open)) {
  2687. this.Adapter.UpdateCommand.Connection.Open();
  2688. }
  2689. try {
  2690. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2691. return returnValue;
  2692. }
  2693. finally {
  2694. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2695. this.Adapter.UpdateCommand.Connection.Close();
  2696. }
  2697. }
  2698. }
  2699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2701. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2702. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2703. public virtual int Update(global::System.Nullable<int> nomer_comnat, int Original_id_mesta, global::System.Nullable<int> Original_nomer_comnat) {
  2704. return this.Update(nomer_comnat, Original_id_mesta, Original_nomer_comnat, Original_id_mesta);
  2705. }
  2706. }
  2707. /// <summary>
  2708. ///Represents the connection and commands used to retrieve and save data.
  2709. ///</summary>
  2710. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2711. [global::System.ComponentModel.ToolboxItem(true)]
  2712. [global::System.ComponentModel.DataObjectAttribute(true)]
  2713. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2714. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2715. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2716. public partial class nomerTableAdapter : global::System.ComponentModel.Component {
  2717. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2718. private global::System.Data.SqlClient.SqlConnection _connection;
  2719. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2720. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2721. private bool _clearBeforeFill;
  2722. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2723. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2724. public nomerTableAdapter() {
  2725. this.ClearBeforeFill = true;
  2726. }
  2727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2729. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2730. get {
  2731. if ((this._adapter == null)) {
  2732. this.InitAdapter();
  2733. }
  2734. return this._adapter;
  2735. }
  2736. }
  2737. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2738. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2739. internal global::System.Data.SqlClient.SqlConnection Connection {
  2740. get {
  2741. if ((this._connection == null)) {
  2742. this.InitConnection();
  2743. }
  2744. return this._connection;
  2745. }
  2746. set {
  2747. this._connection = value;
  2748. if ((this.Adapter.InsertCommand != null)) {
  2749. this.Adapter.InsertCommand.Connection = value;
  2750. }
  2751. if ((this.Adapter.DeleteCommand != null)) {
  2752. this.Adapter.DeleteCommand.Connection = value;
  2753. }
  2754. if ((this.Adapter.UpdateCommand != null)) {
  2755. this.Adapter.UpdateCommand.Connection = value;
  2756. }
  2757. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2758. if ((this.CommandCollection[i] != null)) {
  2759. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2760. }
  2761. }
  2762. }
  2763. }
  2764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2766. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2767. get {
  2768. return this._transaction;
  2769. }
  2770. set {
  2771. this._transaction = value;
  2772. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2773. this.CommandCollection[i].Transaction = this._transaction;
  2774. }
  2775. if (((this.Adapter != null)
  2776. && (this.Adapter.DeleteCommand != null))) {
  2777. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2778. }
  2779. if (((this.Adapter != null)
  2780. && (this.Adapter.InsertCommand != null))) {
  2781. this.Adapter.InsertCommand.Transaction = this._transaction;
  2782. }
  2783. if (((this.Adapter != null)
  2784. && (this.Adapter.UpdateCommand != null))) {
  2785. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2786. }
  2787. }
  2788. }
  2789. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2790. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2791. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2792. get {
  2793. if ((this._commandCollection == null)) {
  2794. this.InitCommandCollection();
  2795. }
  2796. return this._commandCollection;
  2797. }
  2798. }
  2799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2800. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2801. public bool ClearBeforeFill {
  2802. get {
  2803. return this._clearBeforeFill;
  2804. }
  2805. set {
  2806. this._clearBeforeFill = value;
  2807. }
  2808. }
  2809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2811. private void InitAdapter() {
  2812. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2813. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2814. tableMapping.SourceTable = "Table";
  2815. tableMapping.DataSetTable = "nomer";
  2816. tableMapping.ColumnMappings.Add("nomer_comnat", "nomer_comnat");
  2817. tableMapping.ColumnMappings.Add("lvl_comfort", "lvl_comfort");
  2818. this._adapter.TableMappings.Add(tableMapping);
  2819. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2820. this._adapter.DeleteCommand.Connection = this.Connection;
  2821. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[nomer] WHERE (([nomer_comnat] = @Original_nomer_comnat) AND ((" +
  2822. "@IsNull_lvl_comfort = 1 AND [lvl_comfort] IS NULL) OR ([lvl_comfort] = @Original" +
  2823. "_lvl_comfort)))";
  2824. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2825. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2826. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_lvl_comfort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lvl_comfort", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2827. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lvl_comfort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lvl_comfort", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2828. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2829. this._adapter.InsertCommand.Connection = this.Connection;
  2830. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[nomer] ([lvl_comfort]) VALUES (@lvl_comfort);\r\nSELECT nomer_co" +
  2831. "mnat, lvl_comfort FROM nomer WHERE (nomer_comnat = SCOPE_IDENTITY())";
  2832. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2833. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lvl_comfort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lvl_comfort", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2834. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2835. this._adapter.UpdateCommand.Connection = this.Connection;
  2836. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[nomer] SET [lvl_comfort] = @lvl_comfort WHERE (([nomer_comnat] = @Original_nomer_comnat) AND ((@IsNull_lvl_comfort = 1 AND [lvl_comfort] IS NULL) OR ([lvl_comfort] = @Original_lvl_comfort)));
  2837. SELECT nomer_comnat, lvl_comfort FROM nomer WHERE (nomer_comnat = @nomer_comnat)";
  2838. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2839. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@lvl_comfort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lvl_comfort", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2840. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_nomer_comnat", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2841. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_lvl_comfort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lvl_comfort", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
  2842. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_lvl_comfort", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "lvl_comfort", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2843. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@nomer_comnat", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "nomer_comnat", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2844. }
  2845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2847. private void InitConnection() {
  2848. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2849. this._connection.ConnectionString = global::testkonkurs1.Properties.Settings.Default.konkursConnectionString;
  2850. }
  2851. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2852. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2853. private void InitCommandCollection() {
  2854. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2855. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2856. this._commandCollection[0].Connection = this.Connection;
  2857. this._commandCollection[0].CommandText = "SELECT nomer_comnat, lvl_comfort FROM dbo.nomer";
  2858. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2859. }
  2860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2862. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2863. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2864. public virtual int Fill(konkursDataSet.nomerDataTable dataTable) {
  2865. this.Adapter.SelectCommand = this.CommandCollection[0];
  2866. if ((this.ClearBeforeFill == true)) {
  2867. dataTable.Clear();
  2868. }
  2869. int returnValue = this.Adapter.Fill(dataTable);
  2870. return returnValue;
  2871. }
  2872. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2873. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2874. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2875. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2876. public virtual konkursDataSet.nomerDataTable GetData() {
  2877. this.Adapter.SelectCommand = this.CommandCollection[0];
  2878. konkursDataSet.nomerDataTable dataTable = new konkursDataSet.nomerDataTable();
  2879. this.Adapter.Fill(dataTable);
  2880. return dataTable;
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2885. public virtual int Update(konkursDataSet.nomerDataTable dataTable) {
  2886. return this.Adapter.Update(dataTable);
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2891. public virtual int Update(konkursDataSet dataSet) {
  2892. return this.Adapter.Update(dataSet, "nomer");
  2893. }
  2894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2896. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2897. public virtual int Update(global::System.Data.DataRow dataRow) {
  2898. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2899. dataRow});
  2900. }
  2901. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2902. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2903. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2904. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2905. return this.Adapter.Update(dataRows);
  2906. }
  2907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2909. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2910. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2911. public virtual int Delete(int Original_nomer_comnat, global::System.Nullable<int> Original_lvl_comfort) {
  2912. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_nomer_comnat));
  2913. if ((Original_lvl_comfort.HasValue == true)) {
  2914. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(0));
  2915. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_lvl_comfort.Value));
  2916. }
  2917. else {
  2918. this.Adapter.DeleteCommand.Parameters[1].Value = ((object)(1));
  2919. this.Adapter.DeleteCommand.Parameters[2].Value = global::System.DBNull.Value;
  2920. }
  2921. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2922. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2923. != global::System.Data.ConnectionState.Open)) {
  2924. this.Adapter.DeleteCommand.Connection.Open();
  2925. }
  2926. try {
  2927. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2928. return returnValue;
  2929. }
  2930. finally {
  2931. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2932. this.Adapter.DeleteCommand.Connection.Close();
  2933. }
  2934. }
  2935. }
  2936. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2937. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2938. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2939. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2940. public virtual int Insert(global::System.Nullable<int> lvl_comfort) {
  2941. if ((lvl_comfort.HasValue == true)) {
  2942. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(lvl_comfort.Value));
  2943. }
  2944. else {
  2945. this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
  2946. }
  2947. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2948. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2949. != global::System.Data.ConnectionState.Open)) {
  2950. this.Adapter.InsertCommand.Connection.Open();
  2951. }
  2952. try {
  2953. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2954. return returnValue;
  2955. }
  2956. finally {
  2957. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2958. this.Adapter.InsertCommand.Connection.Close();
  2959. }
  2960. }
  2961. }
  2962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2964. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2965. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2966. public virtual int Update(global::System.Nullable<int> lvl_comfort, int Original_nomer_comnat, global::System.Nullable<int> Original_lvl_comfort, int nomer_comnat) {
  2967. if ((lvl_comfort.HasValue == true)) {
  2968. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(lvl_comfort.Value));
  2969. }
  2970. else {
  2971. this.Adapter.UpdateCommand.Parameters[0].Value = global::System.DBNull.Value;
  2972. }
  2973. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Original_nomer_comnat));
  2974. if ((Original_lvl_comfort.HasValue == true)) {
  2975. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(0));
  2976. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_lvl_comfort.Value));
  2977. }
  2978. else {
  2979. this.Adapter.UpdateCommand.Parameters[2].Value = ((object)(1));
  2980. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  2981. }
  2982. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(nomer_comnat));
  2983. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2984. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2985. != global::System.Data.ConnectionState.Open)) {
  2986. this.Adapter.UpdateCommand.Connection.Open();
  2987. }
  2988. try {
  2989. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2990. return returnValue;
  2991. }
  2992. finally {
  2993. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2994. this.Adapter.UpdateCommand.Connection.Close();
  2995. }
  2996. }
  2997. }
  2998. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2999. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3000. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3001. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3002. public virtual int Update(global::System.Nullable<int> lvl_comfort, int Original_nomer_comnat, global::System.Nullable<int> Original_lvl_comfort) {
  3003. return this.Update(lvl_comfort, Original_nomer_comnat, Original_lvl_comfort, Original_nomer_comnat);
  3004. }
  3005. }
  3006. /// <summary>
  3007. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  3008. ///</summary>
  3009. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3010. [global::System.ComponentModel.ToolboxItem(true)]
  3011. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  3012. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3013. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  3014. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  3015. private UpdateOrderOption _updateOrder;
  3016. private bronirovaniTableAdapter _bronirovaniTableAdapter;
  3017. private comfortTableAdapter _comfortTableAdapter;
  3018. private mestaTableAdapter _mestaTableAdapter;
  3019. private nomerTableAdapter _nomerTableAdapter;
  3020. private bool _backupDataSetBeforeUpdate;
  3021. private global::System.Data.IDbConnection _connection;
  3022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3023. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3024. public UpdateOrderOption UpdateOrder {
  3025. get {
  3026. return this._updateOrder;
  3027. }
  3028. set {
  3029. this._updateOrder = value;
  3030. }
  3031. }
  3032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3034. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3035. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3036. "a", "System.Drawing.Design.UITypeEditor")]
  3037. public bronirovaniTableAdapter bronirovaniTableAdapter {
  3038. get {
  3039. return this._bronirovaniTableAdapter;
  3040. }
  3041. set {
  3042. this._bronirovaniTableAdapter = value;
  3043. }
  3044. }
  3045. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3046. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3047. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3048. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3049. "a", "System.Drawing.Design.UITypeEditor")]
  3050. public comfortTableAdapter comfortTableAdapter {
  3051. get {
  3052. return this._comfortTableAdapter;
  3053. }
  3054. set {
  3055. this._comfortTableAdapter = value;
  3056. }
  3057. }
  3058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3060. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3061. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3062. "a", "System.Drawing.Design.UITypeEditor")]
  3063. public mestaTableAdapter mestaTableAdapter {
  3064. get {
  3065. return this._mestaTableAdapter;
  3066. }
  3067. set {
  3068. this._mestaTableAdapter = value;
  3069. }
  3070. }
  3071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3073. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3074. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3075. "a", "System.Drawing.Design.UITypeEditor")]
  3076. public nomerTableAdapter nomerTableAdapter {
  3077. get {
  3078. return this._nomerTableAdapter;
  3079. }
  3080. set {
  3081. this._nomerTableAdapter = value;
  3082. }
  3083. }
  3084. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3085. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3086. public bool BackupDataSetBeforeUpdate {
  3087. get {
  3088. return this._backupDataSetBeforeUpdate;
  3089. }
  3090. set {
  3091. this._backupDataSetBeforeUpdate = value;
  3092. }
  3093. }
  3094. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3095. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3096. [global::System.ComponentModel.Browsable(false)]
  3097. public global::System.Data.IDbConnection Connection {
  3098. get {
  3099. if ((this._connection != null)) {
  3100. return this._connection;
  3101. }
  3102. if (((this._bronirovaniTableAdapter != null)
  3103. && (this._bronirovaniTableAdapter.Connection != null))) {
  3104. return this._bronirovaniTableAdapter.Connection;
  3105. }
  3106. if (((this._comfortTableAdapter != null)
  3107. && (this._comfortTableAdapter.Connection != null))) {
  3108. return this._comfortTableAdapter.Connection;
  3109. }
  3110. if (((this._mestaTableAdapter != null)
  3111. && (this._mestaTableAdapter.Connection != null))) {
  3112. return this._mestaTableAdapter.Connection;
  3113. }
  3114. if (((this._nomerTableAdapter != null)
  3115. && (this._nomerTableAdapter.Connection != null))) {
  3116. return this._nomerTableAdapter.Connection;
  3117. }
  3118. return null;
  3119. }
  3120. set {
  3121. this._connection = value;
  3122. }
  3123. }
  3124. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3125. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3126. [global::System.ComponentModel.Browsable(false)]
  3127. public int TableAdapterInstanceCount {
  3128. get {
  3129. int count = 0;
  3130. if ((this._bronirovaniTableAdapter != null)) {
  3131. count = (count + 1);
  3132. }
  3133. if ((this._comfortTableAdapter != null)) {
  3134. count = (count + 1);
  3135. }
  3136. if ((this._mestaTableAdapter != null)) {
  3137. count = (count + 1);
  3138. }
  3139. if ((this._nomerTableAdapter != null)) {
  3140. count = (count + 1);
  3141. }
  3142. return count;
  3143. }
  3144. }
  3145. /// <summary>
  3146. ///Update rows in top-down order.
  3147. ///</summary>
  3148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3149. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3150. private int UpdateUpdatedRows(konkursDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3151. int result = 0;
  3152. if ((this._bronirovaniTableAdapter != null)) {
  3153. global::System.Data.DataRow[] updatedRows = dataSet.bronirovani.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3154. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3155. if (((updatedRows != null)
  3156. && (0 < updatedRows.Length))) {
  3157. result = (result + this._bronirovaniTableAdapter.Update(updatedRows));
  3158. allChangedRows.AddRange(updatedRows);
  3159. }
  3160. }
  3161. if ((this._comfortTableAdapter != null)) {
  3162. global::System.Data.DataRow[] updatedRows = dataSet.comfort.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3163. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3164. if (((updatedRows != null)
  3165. && (0 < updatedRows.Length))) {
  3166. result = (result + this._comfortTableAdapter.Update(updatedRows));
  3167. allChangedRows.AddRange(updatedRows);
  3168. }
  3169. }
  3170. if ((this._mestaTableAdapter != null)) {
  3171. global::System.Data.DataRow[] updatedRows = dataSet.mesta.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3172. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3173. if (((updatedRows != null)
  3174. && (0 < updatedRows.Length))) {
  3175. result = (result + this._mestaTableAdapter.Update(updatedRows));
  3176. allChangedRows.AddRange(updatedRows);
  3177. }
  3178. }
  3179. if ((this._nomerTableAdapter != null)) {
  3180. global::System.Data.DataRow[] updatedRows = dataSet.nomer.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  3181. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  3182. if (((updatedRows != null)
  3183. && (0 < updatedRows.Length))) {
  3184. result = (result + this._nomerTableAdapter.Update(updatedRows));
  3185. allChangedRows.AddRange(updatedRows);
  3186. }
  3187. }
  3188. return result;
  3189. }
  3190. /// <summary>
  3191. ///Insert rows in top-down order.
  3192. ///</summary>
  3193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3195. private int UpdateInsertedRows(konkursDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3196. int result = 0;
  3197. if ((this._bronirovaniTableAdapter != null)) {
  3198. global::System.Data.DataRow[] addedRows = dataSet.bronirovani.Select(null, null, global::System.Data.DataViewRowState.Added);
  3199. if (((addedRows != null)
  3200. && (0 < addedRows.Length))) {
  3201. result = (result + this._bronirovaniTableAdapter.Update(addedRows));
  3202. allAddedRows.AddRange(addedRows);
  3203. }
  3204. }
  3205. if ((this._comfortTableAdapter != null)) {
  3206. global::System.Data.DataRow[] addedRows = dataSet.comfort.Select(null, null, global::System.Data.DataViewRowState.Added);
  3207. if (((addedRows != null)
  3208. && (0 < addedRows.Length))) {
  3209. result = (result + this._comfortTableAdapter.Update(addedRows));
  3210. allAddedRows.AddRange(addedRows);
  3211. }
  3212. }
  3213. if ((this._mestaTableAdapter != null)) {
  3214. global::System.Data.DataRow[] addedRows = dataSet.mesta.Select(null, null, global::System.Data.DataViewRowState.Added);
  3215. if (((addedRows != null)
  3216. && (0 < addedRows.Length))) {
  3217. result = (result + this._mestaTableAdapter.Update(addedRows));
  3218. allAddedRows.AddRange(addedRows);
  3219. }
  3220. }
  3221. if ((this._nomerTableAdapter != null)) {
  3222. global::System.Data.DataRow[] addedRows = dataSet.nomer.Select(null, null, global::System.Data.DataViewRowState.Added);
  3223. if (((addedRows != null)
  3224. && (0 < addedRows.Length))) {
  3225. result = (result + this._nomerTableAdapter.Update(addedRows));
  3226. allAddedRows.AddRange(addedRows);
  3227. }
  3228. }
  3229. return result;
  3230. }
  3231. /// <summary>
  3232. ///Delete rows in bottom-up order.
  3233. ///</summary>
  3234. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3235. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3236. private int UpdateDeletedRows(konkursDataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  3237. int result = 0;
  3238. if ((this._nomerTableAdapter != null)) {
  3239. global::System.Data.DataRow[] deletedRows = dataSet.nomer.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3240. if (((deletedRows != null)
  3241. && (0 < deletedRows.Length))) {
  3242. result = (result + this._nomerTableAdapter.Update(deletedRows));
  3243. allChangedRows.AddRange(deletedRows);
  3244. }
  3245. }
  3246. if ((this._mestaTableAdapter != null)) {
  3247. global::System.Data.DataRow[] deletedRows = dataSet.mesta.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3248. if (((deletedRows != null)
  3249. && (0 < deletedRows.Length))) {
  3250. result = (result + this._mestaTableAdapter.Update(deletedRows));
  3251. allChangedRows.AddRange(deletedRows);
  3252. }
  3253. }
  3254. if ((this._comfortTableAdapter != null)) {
  3255. global::System.Data.DataRow[] deletedRows = dataSet.comfort.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3256. if (((deletedRows != null)
  3257. && (0 < deletedRows.Length))) {
  3258. result = (result + this._comfortTableAdapter.Update(deletedRows));
  3259. allChangedRows.AddRange(deletedRows);
  3260. }
  3261. }
  3262. if ((this._bronirovaniTableAdapter != null)) {
  3263. global::System.Data.DataRow[] deletedRows = dataSet.bronirovani.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  3264. if (((deletedRows != null)
  3265. && (0 < deletedRows.Length))) {
  3266. result = (result + this._bronirovaniTableAdapter.Update(deletedRows));
  3267. allChangedRows.AddRange(deletedRows);
  3268. }
  3269. }
  3270. return result;
  3271. }
  3272. /// <summary>
  3273. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  3274. ///</summary>
  3275. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3276. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3277. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  3278. if (((updatedRows == null)
  3279. || (updatedRows.Length < 1))) {
  3280. return updatedRows;
  3281. }
  3282. if (((allAddedRows == null)
  3283. || (allAddedRows.Count < 1))) {
  3284. return updatedRows;
  3285. }
  3286. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3287. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  3288. global::System.Data.DataRow row = updatedRows[i];
  3289. if ((allAddedRows.Contains(row) == false)) {
  3290. realUpdatedRows.Add(row);
  3291. }
  3292. }
  3293. return realUpdatedRows.ToArray();
  3294. }
  3295. /// <summary>
  3296. ///Update all changes to the dataset.
  3297. ///</summary>
  3298. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3299. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3300. public virtual int UpdateAll(konkursDataSet dataSet) {
  3301. if ((dataSet == null)) {
  3302. throw new global::System.ArgumentNullException("dataSet");
  3303. }
  3304. if ((dataSet.HasChanges() == false)) {
  3305. return 0;
  3306. }
  3307. if (((this._bronirovaniTableAdapter != null)
  3308. && (this.MatchTableAdapterConnection(this._bronirovaniTableAdapter.Connection) == false))) {
  3309. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3310. "r, должны использовать одинаковую строку подключения.");
  3311. }
  3312. if (((this._comfortTableAdapter != null)
  3313. && (this.MatchTableAdapterConnection(this._comfortTableAdapter.Connection) == false))) {
  3314. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3315. "r, должны использовать одинаковую строку подключения.");
  3316. }
  3317. if (((this._mestaTableAdapter != null)
  3318. && (this.MatchTableAdapterConnection(this._mestaTableAdapter.Connection) == false))) {
  3319. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3320. "r, должны использовать одинаковую строку подключения.");
  3321. }
  3322. if (((this._nomerTableAdapter != null)
  3323. && (this.MatchTableAdapterConnection(this._nomerTableAdapter.Connection) == false))) {
  3324. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  3325. "r, должны использовать одинаковую строку подключения.");
  3326. }
  3327. global::System.Data.IDbConnection workConnection = this.Connection;
  3328. if ((workConnection == null)) {
  3329. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  3330. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  3331. }
  3332. bool workConnOpened = false;
  3333. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  3334. == global::System.Data.ConnectionState.Broken)) {
  3335. workConnection.Close();
  3336. }
  3337. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  3338. workConnection.Open();
  3339. workConnOpened = true;
  3340. }
  3341. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  3342. if ((workTransaction == null)) {
  3343. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  3344. "и или текущее состояние не позволяет начать транзакцию.");
  3345. }
  3346. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3347. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  3348. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  3349. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  3350. int result = 0;
  3351. global::System.Data.DataSet backupDataSet = null;
  3352. if (this.BackupDataSetBeforeUpdate) {
  3353. backupDataSet = new global::System.Data.DataSet();
  3354. backupDataSet.Merge(dataSet);
  3355. }
  3356. try {
  3357. // ---- Prepare for update -----------
  3358. //
  3359. if ((this._bronirovaniTableAdapter != null)) {
  3360. revertConnections.Add(this._bronirovaniTableAdapter, this._bronirovaniTableAdapter.Connection);
  3361. this._bronirovaniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3362. this._bronirovaniTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3363. if (this._bronirovaniTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3364. this._bronirovaniTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3365. adaptersWithAcceptChangesDuringUpdate.Add(this._bronirovaniTableAdapter.Adapter);
  3366. }
  3367. }
  3368. if ((this._comfortTableAdapter != null)) {
  3369. revertConnections.Add(this._comfortTableAdapter, this._comfortTableAdapter.Connection);
  3370. this._comfortTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3371. this._comfortTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3372. if (this._comfortTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3373. this._comfortTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3374. adaptersWithAcceptChangesDuringUpdate.Add(this._comfortTableAdapter.Adapter);
  3375. }
  3376. }
  3377. if ((this._mestaTableAdapter != null)) {
  3378. revertConnections.Add(this._mestaTableAdapter, this._mestaTableAdapter.Connection);
  3379. this._mestaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3380. this._mestaTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3381. if (this._mestaTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3382. this._mestaTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3383. adaptersWithAcceptChangesDuringUpdate.Add(this._mestaTableAdapter.Adapter);
  3384. }
  3385. }
  3386. if ((this._nomerTableAdapter != null)) {
  3387. revertConnections.Add(this._nomerTableAdapter, this._nomerTableAdapter.Connection);
  3388. this._nomerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  3389. this._nomerTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  3390. if (this._nomerTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  3391. this._nomerTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  3392. adaptersWithAcceptChangesDuringUpdate.Add(this._nomerTableAdapter.Adapter);
  3393. }
  3394. }
  3395. //
  3396. //---- Perform updates -----------
  3397. //
  3398. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  3399. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  3400. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  3401. }
  3402. else {
  3403. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  3404. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  3405. }
  3406. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  3407. //
  3408. //---- Commit updates -----------
  3409. //
  3410. workTransaction.Commit();
  3411. if ((0 < allAddedRows.Count)) {
  3412. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  3413. allAddedRows.CopyTo(rows);
  3414. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3415. global::System.Data.DataRow row = rows[i];
  3416. row.AcceptChanges();
  3417. }
  3418. }
  3419. if ((0 < allChangedRows.Count)) {
  3420. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  3421. allChangedRows.CopyTo(rows);
  3422. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3423. global::System.Data.DataRow row = rows[i];
  3424. row.AcceptChanges();
  3425. }
  3426. }
  3427. }
  3428. catch (global::System.Exception ex) {
  3429. workTransaction.Rollback();
  3430. // ---- Restore the dataset -----------
  3431. if (this.BackupDataSetBeforeUpdate) {
  3432. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  3433. dataSet.Clear();
  3434. dataSet.Merge(backupDataSet);
  3435. }
  3436. else {
  3437. if ((0 < allAddedRows.Count)) {
  3438. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  3439. allAddedRows.CopyTo(rows);
  3440. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  3441. global::System.Data.DataRow row = rows[i];
  3442. row.AcceptChanges();
  3443. row.SetAdded();
  3444. }
  3445. }
  3446. }
  3447. throw ex;
  3448. }
  3449. finally {
  3450. if (workConnOpened) {
  3451. workConnection.Close();
  3452. }
  3453. if ((this._bronirovaniTableAdapter != null)) {
  3454. this._bronirovaniTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._bronirovaniTableAdapter]));
  3455. this._bronirovaniTableAdapter.Transaction = null;
  3456. }
  3457. if ((this._comfortTableAdapter != null)) {
  3458. this._comfortTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._comfortTableAdapter]));
  3459. this._comfortTableAdapter.Transaction = null;
  3460. }
  3461. if ((this._mestaTableAdapter != null)) {
  3462. this._mestaTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._mestaTableAdapter]));
  3463. this._mestaTableAdapter.Transaction = null;
  3464. }
  3465. if ((this._nomerTableAdapter != null)) {
  3466. this._nomerTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._nomerTableAdapter]));
  3467. this._nomerTableAdapter.Transaction = null;
  3468. }
  3469. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  3470. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  3471. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  3472. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  3473. global::System.Data.Common.DataAdapter adapter = adapters[i];
  3474. adapter.AcceptChangesDuringUpdate = true;
  3475. }
  3476. }
  3477. }
  3478. return result;
  3479. }
  3480. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3481. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3482. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  3483. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  3484. }
  3485. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3487. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  3488. if ((this._connection != null)) {
  3489. return true;
  3490. }
  3491. if (((this.Connection == null)
  3492. || (inputConnection == null))) {
  3493. return true;
  3494. }
  3495. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  3496. return true;
  3497. }
  3498. return false;
  3499. }
  3500. /// <summary>
  3501. ///Update Order Option
  3502. ///</summary>
  3503. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3504. public enum UpdateOrderOption {
  3505. InsertUpdateDelete = 0,
  3506. UpdateInsertDelete = 1,
  3507. }
  3508. /// <summary>
  3509. ///Used to sort self-referenced table's rows
  3510. ///</summary>
  3511. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3512. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  3513. private global::System.Data.DataRelation _relation;
  3514. private int _childFirst;
  3515. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3516. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3517. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  3518. this._relation = relation;
  3519. if (childFirst) {
  3520. this._childFirst = -1;
  3521. }
  3522. else {
  3523. this._childFirst = 1;
  3524. }
  3525. }
  3526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3528. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  3529. global::System.Diagnostics.Debug.Assert((row != null));
  3530. global::System.Data.DataRow root = row;
  3531. distance = 0;
  3532. 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>();
  3533. traversedRows[row] = row;
  3534. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3535. for (
  3536. ; ((parent != null)
  3537. && (traversedRows.ContainsKey(parent) == false));
  3538. ) {
  3539. distance = (distance + 1);
  3540. root = parent;
  3541. traversedRows[parent] = parent;
  3542. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  3543. }
  3544. if ((distance == 0)) {
  3545. traversedRows.Clear();
  3546. traversedRows[row] = row;
  3547. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3548. for (
  3549. ; ((parent != null)
  3550. && (traversedRows.ContainsKey(parent) == false));
  3551. ) {
  3552. distance = (distance + 1);
  3553. root = parent;
  3554. traversedRows[parent] = parent;
  3555. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  3556. }
  3557. }
  3558. return root;
  3559. }
  3560. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3561. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3562. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  3563. if (object.ReferenceEquals(row1, row2)) {
  3564. return 0;
  3565. }
  3566. if ((row1 == null)) {
  3567. return -1;
  3568. }
  3569. if ((row2 == null)) {
  3570. return 1;
  3571. }
  3572. int distance1 = 0;
  3573. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  3574. int distance2 = 0;
  3575. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  3576. if (object.ReferenceEquals(root1, root2)) {
  3577. return (this._childFirst * distance1.CompareTo(distance2));
  3578. }
  3579. else {
  3580. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  3581. && (root2.Table != null)));
  3582. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  3583. return -1;
  3584. }
  3585. else {
  3586. return 1;
  3587. }
  3588. }
  3589. }
  3590. }
  3591. }
  3592. }
  3593. #pragma warning restore 1591