dsFrmLog.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. using System;
  2. using System.CodeDom.Compiler;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.ComponentModel.Design;
  6. using System.Data;
  7. using System.Diagnostics;
  8. using System.IO;
  9. using System.Runtime.Serialization;
  10. using System.Xml;
  11. using System.Xml.Schema;
  12. using System.Xml.Serialization;
  13. namespace SunRoxm.BizPeri.ReportDataSet.ReportDataSet
  14. {
  15. [Serializable]
  16. [HelpKeyword("vs.data.DataSet")]
  17. [DesignerCategory("code")]
  18. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  19. [ToolboxItem(true)]
  20. [XmlSchemaProvider("GetTypedDataSetSchema")]
  21. [XmlRoot("dsFrmLog")]
  22. public class dsFrmLog : DataSet
  23. {
  24. public delegate void LogRecordRowChangeEventHandler(object sender, LogRecordRowChangeEvent e);
  25. [Serializable]
  26. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  27. [XmlSchemaProvider("GetTypedTableSchema")]
  28. public class LogRecordDataTable : DataTable, IEnumerable
  29. {
  30. private DataColumn columnTime_LogRecord;
  31. private DataColumn columnLoginName_LogRecord;
  32. private DataColumn columnFormName_LogRecord;
  33. private DataColumn columnFormNo_LogRecord;
  34. private DataColumn columnOperation_LogRecord;
  35. private DataColumn columnResult_LogRecord;
  36. [DebuggerNonUserCode]
  37. public DataColumn Time_LogRecordColumn => columnTime_LogRecord;
  38. [DebuggerNonUserCode]
  39. public DataColumn LoginName_LogRecordColumn => columnLoginName_LogRecord;
  40. [DebuggerNonUserCode]
  41. public DataColumn FormName_LogRecordColumn => columnFormName_LogRecord;
  42. [DebuggerNonUserCode]
  43. public DataColumn FormNo_LogRecordColumn => columnFormNo_LogRecord;
  44. [DebuggerNonUserCode]
  45. public DataColumn Operation_LogRecordColumn => columnOperation_LogRecord;
  46. [DebuggerNonUserCode]
  47. public DataColumn Result_LogRecordColumn => columnResult_LogRecord;
  48. [Browsable(false)]
  49. [DebuggerNonUserCode]
  50. public int Count => base.Rows.Count;
  51. [DebuggerNonUserCode]
  52. public LogRecordRow this[int index] => (LogRecordRow)base.Rows[index];
  53. public event LogRecordRowChangeEventHandler LogRecordRowChanging;
  54. public event LogRecordRowChangeEventHandler LogRecordRowChanged;
  55. public event LogRecordRowChangeEventHandler LogRecordRowDeleting;
  56. public event LogRecordRowChangeEventHandler LogRecordRowDeleted;
  57. [DebuggerNonUserCode]
  58. public LogRecordDataTable()
  59. {
  60. base.TableName = "LogRecord";
  61. BeginInit();
  62. InitClass();
  63. EndInit();
  64. }
  65. [DebuggerNonUserCode]
  66. internal LogRecordDataTable(DataTable table)
  67. {
  68. base.TableName = table.TableName;
  69. if (table.CaseSensitive != table.DataSet.CaseSensitive)
  70. {
  71. base.CaseSensitive = table.CaseSensitive;
  72. }
  73. if (table.Locale.ToString() != table.DataSet.Locale.ToString())
  74. {
  75. base.Locale = table.Locale;
  76. }
  77. if (table.Namespace != table.DataSet.Namespace)
  78. {
  79. base.Namespace = table.Namespace;
  80. }
  81. base.Prefix = table.Prefix;
  82. base.MinimumCapacity = table.MinimumCapacity;
  83. }
  84. [DebuggerNonUserCode]
  85. protected LogRecordDataTable(SerializationInfo info, StreamingContext context)
  86. : base(info, context)
  87. {
  88. InitVars();
  89. }
  90. [DebuggerNonUserCode]
  91. public void AddLogRecordRow(LogRecordRow row)
  92. {
  93. base.Rows.Add(row);
  94. }
  95. [DebuggerNonUserCode]
  96. public LogRecordRow AddLogRecordRow(DateTime Time_LogRecord, string LoginName_LogRecord, string FormName_LogRecord, string FormNo_LogRecord, string Operation_LogRecord, string Result_LogRecord)
  97. {
  98. LogRecordRow logRecordRow = (LogRecordRow)NewRow();
  99. logRecordRow.ItemArray = new object[6]
  100. {
  101. Time_LogRecord,
  102. LoginName_LogRecord,
  103. FormName_LogRecord,
  104. FormNo_LogRecord,
  105. Operation_LogRecord,
  106. Result_LogRecord
  107. };
  108. base.Rows.Add(logRecordRow);
  109. return logRecordRow;
  110. }
  111. [DebuggerNonUserCode]
  112. public virtual IEnumerator GetEnumerator()
  113. {
  114. return base.Rows.GetEnumerator();
  115. }
  116. [DebuggerNonUserCode]
  117. public override DataTable Clone()
  118. {
  119. LogRecordDataTable logRecordDataTable = (LogRecordDataTable)base.Clone();
  120. logRecordDataTable.InitVars();
  121. return logRecordDataTable;
  122. }
  123. [DebuggerNonUserCode]
  124. protected override DataTable CreateInstance()
  125. {
  126. return new LogRecordDataTable();
  127. }
  128. [DebuggerNonUserCode]
  129. internal void InitVars()
  130. {
  131. columnTime_LogRecord = base.Columns["Time_LogRecord"];
  132. columnLoginName_LogRecord = base.Columns["LoginName_LogRecord"];
  133. columnFormName_LogRecord = base.Columns["FormName_LogRecord"];
  134. columnFormNo_LogRecord = base.Columns["FormNo_LogRecord"];
  135. columnOperation_LogRecord = base.Columns["Operation_LogRecord"];
  136. columnResult_LogRecord = base.Columns["Result_LogRecord"];
  137. }
  138. [DebuggerNonUserCode]
  139. private void InitClass()
  140. {
  141. columnTime_LogRecord = new DataColumn("Time_LogRecord", typeof(DateTime), null, MappingType.Element);
  142. base.Columns.Add(columnTime_LogRecord);
  143. columnLoginName_LogRecord = new DataColumn("LoginName_LogRecord", typeof(string), null, MappingType.Element);
  144. base.Columns.Add(columnLoginName_LogRecord);
  145. columnFormName_LogRecord = new DataColumn("FormName_LogRecord", typeof(string), null, MappingType.Element);
  146. base.Columns.Add(columnFormName_LogRecord);
  147. columnFormNo_LogRecord = new DataColumn("FormNo_LogRecord", typeof(string), null, MappingType.Element);
  148. base.Columns.Add(columnFormNo_LogRecord);
  149. columnOperation_LogRecord = new DataColumn("Operation_LogRecord", typeof(string), null, MappingType.Element);
  150. base.Columns.Add(columnOperation_LogRecord);
  151. columnResult_LogRecord = new DataColumn("Result_LogRecord", typeof(string), null, MappingType.Element);
  152. base.Columns.Add(columnResult_LogRecord);
  153. }
  154. [DebuggerNonUserCode]
  155. public LogRecordRow NewLogRecordRow()
  156. {
  157. return (LogRecordRow)NewRow();
  158. }
  159. [DebuggerNonUserCode]
  160. protected override DataRow NewRowFromBuilder(DataRowBuilder builder)
  161. {
  162. return new LogRecordRow(builder);
  163. }
  164. [DebuggerNonUserCode]
  165. protected override Type GetRowType()
  166. {
  167. return typeof(LogRecordRow);
  168. }
  169. [DebuggerNonUserCode]
  170. protected override void OnRowChanged(DataRowChangeEventArgs e)
  171. {
  172. base.OnRowChanged(e);
  173. if (this.LogRecordRowChanged != null)
  174. {
  175. this.LogRecordRowChanged(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
  176. }
  177. }
  178. [DebuggerNonUserCode]
  179. protected override void OnRowChanging(DataRowChangeEventArgs e)
  180. {
  181. base.OnRowChanging(e);
  182. if (this.LogRecordRowChanging != null)
  183. {
  184. this.LogRecordRowChanging(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
  185. }
  186. }
  187. [DebuggerNonUserCode]
  188. protected override void OnRowDeleted(DataRowChangeEventArgs e)
  189. {
  190. base.OnRowDeleted(e);
  191. if (this.LogRecordRowDeleted != null)
  192. {
  193. this.LogRecordRowDeleted(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
  194. }
  195. }
  196. [DebuggerNonUserCode]
  197. protected override void OnRowDeleting(DataRowChangeEventArgs e)
  198. {
  199. base.OnRowDeleting(e);
  200. if (this.LogRecordRowDeleting != null)
  201. {
  202. this.LogRecordRowDeleting(this, new LogRecordRowChangeEvent((LogRecordRow)e.Row, e.Action));
  203. }
  204. }
  205. [DebuggerNonUserCode]
  206. public void RemoveLogRecordRow(LogRecordRow row)
  207. {
  208. base.Rows.Remove(row);
  209. }
  210. [DebuggerNonUserCode]
  211. public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
  212. {
  213. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  214. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  215. dsFrmLog dsFrmLog = new dsFrmLog();
  216. xs.Add(dsFrmLog.GetSchemaSerializable());
  217. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  218. xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema";
  219. xmlSchemaAny.MinOccurs = 0m;
  220. xmlSchemaAny.MaxOccurs = decimal.MaxValue;
  221. xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax;
  222. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  223. XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny();
  224. xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  225. xmlSchemaAny2.MinOccurs = 1m;
  226. xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax;
  227. xmlSchemaSequence.Items.Add(xmlSchemaAny2);
  228. XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute();
  229. xmlSchemaAttribute.Name = "namespace";
  230. xmlSchemaAttribute.FixedValue = dsFrmLog.Namespace;
  231. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute);
  232. XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute();
  233. xmlSchemaAttribute2.Name = "tableTypeName";
  234. xmlSchemaAttribute2.FixedValue = "LogRecordDataTable";
  235. xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2);
  236. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  237. return xmlSchemaComplexType;
  238. }
  239. }
  240. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  241. public class LogRecordRow : DataRow
  242. {
  243. private LogRecordDataTable tableLogRecord;
  244. [DebuggerNonUserCode]
  245. public DateTime Time_LogRecord
  246. {
  247. get
  248. {
  249. try
  250. {
  251. return (DateTime)base[tableLogRecord.Time_LogRecordColumn];
  252. }
  253. catch (InvalidCastException innerException)
  254. {
  255. throw new StrongTypingException("The value for column 'Time_LogRecord' in table 'LogRecord' is DBNull.", innerException);
  256. }
  257. }
  258. set
  259. {
  260. base[tableLogRecord.Time_LogRecordColumn] = value;
  261. }
  262. }
  263. [DebuggerNonUserCode]
  264. public string LoginName_LogRecord
  265. {
  266. get
  267. {
  268. try
  269. {
  270. return (string)base[tableLogRecord.LoginName_LogRecordColumn];
  271. }
  272. catch (InvalidCastException innerException)
  273. {
  274. throw new StrongTypingException("The value for column 'LoginName_LogRecord' in table 'LogRecord' is DBNull.", innerException);
  275. }
  276. }
  277. set
  278. {
  279. base[tableLogRecord.LoginName_LogRecordColumn] = value;
  280. }
  281. }
  282. [DebuggerNonUserCode]
  283. public string FormName_LogRecord
  284. {
  285. get
  286. {
  287. try
  288. {
  289. return (string)base[tableLogRecord.FormName_LogRecordColumn];
  290. }
  291. catch (InvalidCastException innerException)
  292. {
  293. throw new StrongTypingException("The value for column 'FormName_LogRecord' in table 'LogRecord' is DBNull.", innerException);
  294. }
  295. }
  296. set
  297. {
  298. base[tableLogRecord.FormName_LogRecordColumn] = value;
  299. }
  300. }
  301. [DebuggerNonUserCode]
  302. public string FormNo_LogRecord
  303. {
  304. get
  305. {
  306. try
  307. {
  308. return (string)base[tableLogRecord.FormNo_LogRecordColumn];
  309. }
  310. catch (InvalidCastException innerException)
  311. {
  312. throw new StrongTypingException("The value for column 'FormNo_LogRecord' in table 'LogRecord' is DBNull.", innerException);
  313. }
  314. }
  315. set
  316. {
  317. base[tableLogRecord.FormNo_LogRecordColumn] = value;
  318. }
  319. }
  320. [DebuggerNonUserCode]
  321. public string Operation_LogRecord
  322. {
  323. get
  324. {
  325. try
  326. {
  327. return (string)base[tableLogRecord.Operation_LogRecordColumn];
  328. }
  329. catch (InvalidCastException innerException)
  330. {
  331. throw new StrongTypingException("The value for column 'Operation_LogRecord' in table 'LogRecord' is DBNull.", innerException);
  332. }
  333. }
  334. set
  335. {
  336. base[tableLogRecord.Operation_LogRecordColumn] = value;
  337. }
  338. }
  339. [DebuggerNonUserCode]
  340. public string Result_LogRecord
  341. {
  342. get
  343. {
  344. try
  345. {
  346. return (string)base[tableLogRecord.Result_LogRecordColumn];
  347. }
  348. catch (InvalidCastException innerException)
  349. {
  350. throw new StrongTypingException("The value for column 'Result_LogRecord' in table 'LogRecord' is DBNull.", innerException);
  351. }
  352. }
  353. set
  354. {
  355. base[tableLogRecord.Result_LogRecordColumn] = value;
  356. }
  357. }
  358. [DebuggerNonUserCode]
  359. internal LogRecordRow(DataRowBuilder rb)
  360. : base(rb)
  361. {
  362. tableLogRecord = (LogRecordDataTable)base.Table;
  363. }
  364. [DebuggerNonUserCode]
  365. public bool IsTime_LogRecordNull()
  366. {
  367. return IsNull(tableLogRecord.Time_LogRecordColumn);
  368. }
  369. [DebuggerNonUserCode]
  370. public void SetTime_LogRecordNull()
  371. {
  372. base[tableLogRecord.Time_LogRecordColumn] = Convert.DBNull;
  373. }
  374. [DebuggerNonUserCode]
  375. public bool IsLoginName_LogRecordNull()
  376. {
  377. return IsNull(tableLogRecord.LoginName_LogRecordColumn);
  378. }
  379. [DebuggerNonUserCode]
  380. public void SetLoginName_LogRecordNull()
  381. {
  382. base[tableLogRecord.LoginName_LogRecordColumn] = Convert.DBNull;
  383. }
  384. [DebuggerNonUserCode]
  385. public bool IsFormName_LogRecordNull()
  386. {
  387. return IsNull(tableLogRecord.FormName_LogRecordColumn);
  388. }
  389. [DebuggerNonUserCode]
  390. public void SetFormName_LogRecordNull()
  391. {
  392. base[tableLogRecord.FormName_LogRecordColumn] = Convert.DBNull;
  393. }
  394. [DebuggerNonUserCode]
  395. public bool IsFormNo_LogRecordNull()
  396. {
  397. return IsNull(tableLogRecord.FormNo_LogRecordColumn);
  398. }
  399. [DebuggerNonUserCode]
  400. public void SetFormNo_LogRecordNull()
  401. {
  402. base[tableLogRecord.FormNo_LogRecordColumn] = Convert.DBNull;
  403. }
  404. [DebuggerNonUserCode]
  405. public bool IsOperation_LogRecordNull()
  406. {
  407. return IsNull(tableLogRecord.Operation_LogRecordColumn);
  408. }
  409. [DebuggerNonUserCode]
  410. public void SetOperation_LogRecordNull()
  411. {
  412. base[tableLogRecord.Operation_LogRecordColumn] = Convert.DBNull;
  413. }
  414. [DebuggerNonUserCode]
  415. public bool IsResult_LogRecordNull()
  416. {
  417. return IsNull(tableLogRecord.Result_LogRecordColumn);
  418. }
  419. [DebuggerNonUserCode]
  420. public void SetResult_LogRecordNull()
  421. {
  422. base[tableLogRecord.Result_LogRecordColumn] = Convert.DBNull;
  423. }
  424. }
  425. [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]
  426. public class LogRecordRowChangeEvent : EventArgs
  427. {
  428. private LogRecordRow eventRow;
  429. private DataRowAction eventAction;
  430. [DebuggerNonUserCode]
  431. public LogRecordRow Row => eventRow;
  432. [DebuggerNonUserCode]
  433. public DataRowAction Action => eventAction;
  434. [DebuggerNonUserCode]
  435. public LogRecordRowChangeEvent(LogRecordRow row, DataRowAction action)
  436. {
  437. eventRow = row;
  438. eventAction = action;
  439. }
  440. }
  441. private LogRecordDataTable tableLogRecord;
  442. private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  443. [DebuggerNonUserCode]
  444. [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
  445. [Browsable(false)]
  446. public LogRecordDataTable LogRecord => tableLogRecord;
  447. [DebuggerNonUserCode]
  448. [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
  449. [Browsable(true)]
  450. public override SchemaSerializationMode SchemaSerializationMode
  451. {
  452. get
  453. {
  454. return _schemaSerializationMode;
  455. }
  456. set
  457. {
  458. _schemaSerializationMode = value;
  459. }
  460. }
  461. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  462. [DebuggerNonUserCode]
  463. public new DataTableCollection Tables => base.Tables;
  464. [DebuggerNonUserCode]
  465. [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
  466. public new DataRelationCollection Relations => base.Relations;
  467. [DebuggerNonUserCode]
  468. public dsFrmLog()
  469. {
  470. BeginInit();
  471. InitClass();
  472. CollectionChangeEventHandler value = SchemaChanged;
  473. base.Tables.CollectionChanged += value;
  474. base.Relations.CollectionChanged += value;
  475. EndInit();
  476. }
  477. [DebuggerNonUserCode]
  478. protected dsFrmLog(SerializationInfo info, StreamingContext context)
  479. : base(info, context, ConstructSchema: false)
  480. {
  481. if (IsBinarySerialized(info, context))
  482. {
  483. InitVars(initTable: false);
  484. CollectionChangeEventHandler value = SchemaChanged;
  485. Tables.CollectionChanged += value;
  486. Relations.CollectionChanged += value;
  487. return;
  488. }
  489. string s = (string)info.GetValue("XmlSchema", typeof(string));
  490. if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema)
  491. {
  492. DataSet dataSet = new DataSet();
  493. dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  494. if (dataSet.Tables["LogRecord"] != null)
  495. {
  496. base.Tables.Add(new LogRecordDataTable(dataSet.Tables["LogRecord"]));
  497. }
  498. base.DataSetName = dataSet.DataSetName;
  499. base.Prefix = dataSet.Prefix;
  500. base.Namespace = dataSet.Namespace;
  501. base.Locale = dataSet.Locale;
  502. base.CaseSensitive = dataSet.CaseSensitive;
  503. base.EnforceConstraints = dataSet.EnforceConstraints;
  504. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  505. InitVars();
  506. }
  507. else
  508. {
  509. ReadXmlSchema(new XmlTextReader(new StringReader(s)));
  510. }
  511. GetSerializationData(info, context);
  512. CollectionChangeEventHandler value2 = SchemaChanged;
  513. base.Tables.CollectionChanged += value2;
  514. Relations.CollectionChanged += value2;
  515. }
  516. [DebuggerNonUserCode]
  517. protected override void InitializeDerivedDataSet()
  518. {
  519. BeginInit();
  520. InitClass();
  521. EndInit();
  522. }
  523. [DebuggerNonUserCode]
  524. public override DataSet Clone()
  525. {
  526. dsFrmLog dsFrmLog = (dsFrmLog)base.Clone();
  527. dsFrmLog.InitVars();
  528. dsFrmLog.SchemaSerializationMode = SchemaSerializationMode;
  529. return dsFrmLog;
  530. }
  531. [DebuggerNonUserCode]
  532. protected override bool ShouldSerializeTables()
  533. {
  534. return false;
  535. }
  536. [DebuggerNonUserCode]
  537. protected override bool ShouldSerializeRelations()
  538. {
  539. return false;
  540. }
  541. [DebuggerNonUserCode]
  542. protected override void ReadXmlSerializable(XmlReader reader)
  543. {
  544. if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema)
  545. {
  546. Reset();
  547. DataSet dataSet = new DataSet();
  548. dataSet.ReadXml(reader);
  549. if (dataSet.Tables["LogRecord"] != null)
  550. {
  551. base.Tables.Add(new LogRecordDataTable(dataSet.Tables["LogRecord"]));
  552. }
  553. base.DataSetName = dataSet.DataSetName;
  554. base.Prefix = dataSet.Prefix;
  555. base.Namespace = dataSet.Namespace;
  556. base.Locale = dataSet.Locale;
  557. base.CaseSensitive = dataSet.CaseSensitive;
  558. base.EnforceConstraints = dataSet.EnforceConstraints;
  559. Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add);
  560. InitVars();
  561. }
  562. else
  563. {
  564. ReadXml(reader);
  565. InitVars();
  566. }
  567. }
  568. [DebuggerNonUserCode]
  569. protected override XmlSchema GetSchemaSerializable()
  570. {
  571. MemoryStream memoryStream = new MemoryStream();
  572. WriteXmlSchema(new XmlTextWriter(memoryStream, null));
  573. memoryStream.Position = 0L;
  574. return XmlSchema.Read(new XmlTextReader(memoryStream), null);
  575. }
  576. [DebuggerNonUserCode]
  577. internal void InitVars()
  578. {
  579. InitVars(initTable: true);
  580. }
  581. [DebuggerNonUserCode]
  582. internal void InitVars(bool initTable)
  583. {
  584. tableLogRecord = (LogRecordDataTable)base.Tables["LogRecord"];
  585. if (initTable && tableLogRecord != null)
  586. {
  587. tableLogRecord.InitVars();
  588. }
  589. }
  590. [DebuggerNonUserCode]
  591. private void InitClass()
  592. {
  593. base.DataSetName = "dsFrmLog";
  594. base.Prefix = "";
  595. base.Namespace = "http://tempuri.org/dsFrmLog.xsd";
  596. base.EnforceConstraints = true;
  597. SchemaSerializationMode = SchemaSerializationMode.IncludeSchema;
  598. tableLogRecord = new LogRecordDataTable();
  599. base.Tables.Add(tableLogRecord);
  600. }
  601. [DebuggerNonUserCode]
  602. private bool ShouldSerializeLogRecord()
  603. {
  604. return false;
  605. }
  606. [DebuggerNonUserCode]
  607. private void SchemaChanged(object sender, CollectionChangeEventArgs e)
  608. {
  609. if (e.Action == CollectionChangeAction.Remove)
  610. {
  611. InitVars();
  612. }
  613. }
  614. [DebuggerNonUserCode]
  615. public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
  616. {
  617. dsFrmLog dsFrmLog = new dsFrmLog();
  618. XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType();
  619. XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence();
  620. xs.Add(dsFrmLog.GetSchemaSerializable());
  621. XmlSchemaAny xmlSchemaAny = new XmlSchemaAny();
  622. xmlSchemaAny.Namespace = dsFrmLog.Namespace;
  623. xmlSchemaSequence.Items.Add(xmlSchemaAny);
  624. xmlSchemaComplexType.Particle = xmlSchemaSequence;
  625. return xmlSchemaComplexType;
  626. }
  627. }
  628. }