konkursDataSet.Designer.cs 147 KB

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