KrymkovBDDataSet.Designer.cs 145 KB

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