groupsOperDataSet.Designer.cs 114 KB

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