using System; using System.CodeDom.Compiler; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Data; using System.Diagnostics; using System.IO; using System.Runtime.Serialization; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; namespace SunRoxm.BizPeri.ReportDataSet.ReportDataSet { [Serializable] [HelpKeyword("vs.data.DataSet")] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [DesignerCategory("code")] [XmlSchemaProvider("GetTypedDataSetSchema")] [XmlRoot("dsFrmCostSearch")] [ToolboxItem(true)] public class dsFrmCostSearch : DataSet { public delegate void ProductRowChangeEventHandler(object sender, ProductRowChangeEvent e); public delegate void AppendInfoRowChangeEventHandler(object sender, AppendInfoRowChangeEvent e); [Serializable] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlSchemaProvider("GetTypedTableSchema")] public class ProductDataTable : DataTable, IEnumerable { private DataColumn columnNo_Product; private DataColumn columnName_Product; private DataColumn columnInvoiceName_Product; private DataColumn columnUnit_Product; private DataColumn columnCost_Product; private DataColumn columnPrice_Product; private DataColumn columnStockQty_ProductStocks; private DataColumn columnTotalCost; [DebuggerNonUserCode] public DataColumn No_ProductColumn => columnNo_Product; [DebuggerNonUserCode] public DataColumn Name_ProductColumn => columnName_Product; [DebuggerNonUserCode] public DataColumn InvoiceName_ProductColumn => columnInvoiceName_Product; [DebuggerNonUserCode] public DataColumn Unit_ProductColumn => columnUnit_Product; [DebuggerNonUserCode] public DataColumn Cost_ProductColumn => columnCost_Product; [DebuggerNonUserCode] public DataColumn Price_ProductColumn => columnPrice_Product; [DebuggerNonUserCode] public DataColumn StockQty_ProductStocksColumn => columnStockQty_ProductStocks; [DebuggerNonUserCode] public DataColumn TotalCostColumn => columnTotalCost; [Browsable(false)] [DebuggerNonUserCode] public int Count => base.Rows.Count; [DebuggerNonUserCode] public ProductRow this[int index] => (ProductRow)base.Rows[index]; public event ProductRowChangeEventHandler ProductRowChanging; public event ProductRowChangeEventHandler ProductRowChanged; public event ProductRowChangeEventHandler ProductRowDeleting; public event ProductRowChangeEventHandler ProductRowDeleted; [DebuggerNonUserCode] public ProductDataTable() { base.TableName = "Product"; BeginInit(); InitClass(); EndInit(); } [DebuggerNonUserCode] internal ProductDataTable(DataTable table) { base.TableName = table.TableName; if (table.CaseSensitive != table.DataSet.CaseSensitive) { base.CaseSensitive = table.CaseSensitive; } if (table.Locale.ToString() != table.DataSet.Locale.ToString()) { base.Locale = table.Locale; } if (table.Namespace != table.DataSet.Namespace) { base.Namespace = table.Namespace; } base.Prefix = table.Prefix; base.MinimumCapacity = table.MinimumCapacity; } [DebuggerNonUserCode] protected ProductDataTable(SerializationInfo info, StreamingContext context) : base(info, context) { InitVars(); } [DebuggerNonUserCode] public void AddProductRow(ProductRow row) { base.Rows.Add(row); } [DebuggerNonUserCode] public ProductRow AddProductRow(string No_Product, string Name_Product, string InvoiceName_Product, string Unit_Product, decimal Cost_Product, decimal Price_Product, decimal StockQty_ProductStocks, decimal TotalCost) { ProductRow productRow = (ProductRow)NewRow(); productRow.ItemArray = new object[8] { No_Product, Name_Product, InvoiceName_Product, Unit_Product, Cost_Product, Price_Product, StockQty_ProductStocks, TotalCost }; base.Rows.Add(productRow); return productRow; } [DebuggerNonUserCode] public virtual IEnumerator GetEnumerator() { return base.Rows.GetEnumerator(); } [DebuggerNonUserCode] public override DataTable Clone() { ProductDataTable productDataTable = (ProductDataTable)base.Clone(); productDataTable.InitVars(); return productDataTable; } [DebuggerNonUserCode] protected override DataTable CreateInstance() { return new ProductDataTable(); } [DebuggerNonUserCode] internal void InitVars() { columnNo_Product = base.Columns["No_Product"]; columnName_Product = base.Columns["Name_Product"]; columnInvoiceName_Product = base.Columns["InvoiceName_Product"]; columnUnit_Product = base.Columns["Unit_Product"]; columnCost_Product = base.Columns["Cost_Product"]; columnPrice_Product = base.Columns["Price_Product"]; columnStockQty_ProductStocks = base.Columns["StockQty_ProductStocks"]; columnTotalCost = base.Columns["TotalCost"]; } [DebuggerNonUserCode] private void InitClass() { columnNo_Product = new DataColumn("No_Product", typeof(string), null, MappingType.Element); base.Columns.Add(columnNo_Product); columnName_Product = new DataColumn("Name_Product", typeof(string), null, MappingType.Element); base.Columns.Add(columnName_Product); columnInvoiceName_Product = new DataColumn("InvoiceName_Product", typeof(string), null, MappingType.Element); base.Columns.Add(columnInvoiceName_Product); columnUnit_Product = new DataColumn("Unit_Product", typeof(string), null, MappingType.Element); base.Columns.Add(columnUnit_Product); columnCost_Product = new DataColumn("Cost_Product", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnCost_Product); columnPrice_Product = new DataColumn("Price_Product", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnPrice_Product); columnStockQty_ProductStocks = new DataColumn("StockQty_ProductStocks", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnStockQty_ProductStocks); columnTotalCost = new DataColumn("TotalCost", typeof(decimal), null, MappingType.Element); base.Columns.Add(columnTotalCost); } [DebuggerNonUserCode] public ProductRow NewProductRow() { return (ProductRow)NewRow(); } [DebuggerNonUserCode] protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new ProductRow(builder); } [DebuggerNonUserCode] protected override Type GetRowType() { return typeof(ProductRow); } [DebuggerNonUserCode] protected override void OnRowChanged(DataRowChangeEventArgs e) { base.OnRowChanged(e); if (this.ProductRowChanged != null) { this.ProductRowChanged(this, new ProductRowChangeEvent((ProductRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowChanging(DataRowChangeEventArgs e) { base.OnRowChanging(e); if (this.ProductRowChanging != null) { this.ProductRowChanging(this, new ProductRowChangeEvent((ProductRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleted(DataRowChangeEventArgs e) { base.OnRowDeleted(e); if (this.ProductRowDeleted != null) { this.ProductRowDeleted(this, new ProductRowChangeEvent((ProductRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleting(DataRowChangeEventArgs e) { base.OnRowDeleting(e); if (this.ProductRowDeleting != null) { this.ProductRowDeleting(this, new ProductRowChangeEvent((ProductRow)e.Row, e.Action)); } } [DebuggerNonUserCode] public void RemoveProductRow(ProductRow row) { base.Rows.Remove(row); } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs) { XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); dsFrmCostSearch dsFrmCostSearch = new dsFrmCostSearch(); xs.Add(dsFrmCostSearch.GetSchemaSerializable()); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema"; xmlSchemaAny.MinOccurs = 0m; xmlSchemaAny.MaxOccurs = decimal.MaxValue; xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax; xmlSchemaSequence.Items.Add(xmlSchemaAny); XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny(); xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; xmlSchemaAny2.MinOccurs = 1m; xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax; xmlSchemaSequence.Items.Add(xmlSchemaAny2); XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute(); xmlSchemaAttribute.Name = "namespace"; xmlSchemaAttribute.FixedValue = dsFrmCostSearch.Namespace; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute); XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute(); xmlSchemaAttribute2.Name = "tableTypeName"; xmlSchemaAttribute2.FixedValue = "ProductDataTable"; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } [Serializable] [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] [XmlSchemaProvider("GetTypedTableSchema")] public class AppendInfoDataTable : DataTable, IEnumerable { private DataColumn columnCurrentCompany; private DataColumn columnCurrentUser; [DebuggerNonUserCode] public DataColumn CurrentCompanyColumn => columnCurrentCompany; [DebuggerNonUserCode] public DataColumn CurrentUserColumn => columnCurrentUser; [Browsable(false)] [DebuggerNonUserCode] public int Count => base.Rows.Count; [DebuggerNonUserCode] public AppendInfoRow this[int index] => (AppendInfoRow)base.Rows[index]; public event AppendInfoRowChangeEventHandler AppendInfoRowChanging; public event AppendInfoRowChangeEventHandler AppendInfoRowChanged; public event AppendInfoRowChangeEventHandler AppendInfoRowDeleting; public event AppendInfoRowChangeEventHandler AppendInfoRowDeleted; [DebuggerNonUserCode] public AppendInfoDataTable() { base.TableName = "AppendInfo"; BeginInit(); InitClass(); EndInit(); } [DebuggerNonUserCode] internal AppendInfoDataTable(DataTable table) { base.TableName = table.TableName; if (table.CaseSensitive != table.DataSet.CaseSensitive) { base.CaseSensitive = table.CaseSensitive; } if (table.Locale.ToString() != table.DataSet.Locale.ToString()) { base.Locale = table.Locale; } if (table.Namespace != table.DataSet.Namespace) { base.Namespace = table.Namespace; } base.Prefix = table.Prefix; base.MinimumCapacity = table.MinimumCapacity; } [DebuggerNonUserCode] protected AppendInfoDataTable(SerializationInfo info, StreamingContext context) : base(info, context) { InitVars(); } [DebuggerNonUserCode] public void AddAppendInfoRow(AppendInfoRow row) { base.Rows.Add(row); } [DebuggerNonUserCode] public AppendInfoRow AddAppendInfoRow(string CurrentCompany, string CurrentUser) { AppendInfoRow appendInfoRow = (AppendInfoRow)NewRow(); appendInfoRow.ItemArray = new object[2] { CurrentCompany, CurrentUser }; base.Rows.Add(appendInfoRow); return appendInfoRow; } [DebuggerNonUserCode] public virtual IEnumerator GetEnumerator() { return base.Rows.GetEnumerator(); } [DebuggerNonUserCode] public override DataTable Clone() { AppendInfoDataTable appendInfoDataTable = (AppendInfoDataTable)base.Clone(); appendInfoDataTable.InitVars(); return appendInfoDataTable; } [DebuggerNonUserCode] protected override DataTable CreateInstance() { return new AppendInfoDataTable(); } [DebuggerNonUserCode] internal void InitVars() { columnCurrentCompany = base.Columns["CurrentCompany"]; columnCurrentUser = base.Columns["CurrentUser"]; } [DebuggerNonUserCode] private void InitClass() { columnCurrentCompany = new DataColumn("CurrentCompany", typeof(string), null, MappingType.Element); base.Columns.Add(columnCurrentCompany); columnCurrentUser = new DataColumn("CurrentUser", typeof(string), null, MappingType.Element); base.Columns.Add(columnCurrentUser); } [DebuggerNonUserCode] public AppendInfoRow NewAppendInfoRow() { return (AppendInfoRow)NewRow(); } [DebuggerNonUserCode] protected override DataRow NewRowFromBuilder(DataRowBuilder builder) { return new AppendInfoRow(builder); } [DebuggerNonUserCode] protected override Type GetRowType() { return typeof(AppendInfoRow); } [DebuggerNonUserCode] protected override void OnRowChanged(DataRowChangeEventArgs e) { base.OnRowChanged(e); if (this.AppendInfoRowChanged != null) { this.AppendInfoRowChanged(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowChanging(DataRowChangeEventArgs e) { base.OnRowChanging(e); if (this.AppendInfoRowChanging != null) { this.AppendInfoRowChanging(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleted(DataRowChangeEventArgs e) { base.OnRowDeleted(e); if (this.AppendInfoRowDeleted != null) { this.AppendInfoRowDeleted(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] protected override void OnRowDeleting(DataRowChangeEventArgs e) { base.OnRowDeleting(e); if (this.AppendInfoRowDeleting != null) { this.AppendInfoRowDeleting(this, new AppendInfoRowChangeEvent((AppendInfoRow)e.Row, e.Action)); } } [DebuggerNonUserCode] public void RemoveAppendInfoRow(AppendInfoRow row) { base.Rows.Remove(row); } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs) { XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); dsFrmCostSearch dsFrmCostSearch = new dsFrmCostSearch(); xs.Add(dsFrmCostSearch.GetSchemaSerializable()); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = "http://www.w3.org/2001/XMLSchema"; xmlSchemaAny.MinOccurs = 0m; xmlSchemaAny.MaxOccurs = decimal.MaxValue; xmlSchemaAny.ProcessContents = XmlSchemaContentProcessing.Lax; xmlSchemaSequence.Items.Add(xmlSchemaAny); XmlSchemaAny xmlSchemaAny2 = new XmlSchemaAny(); xmlSchemaAny2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1"; xmlSchemaAny2.MinOccurs = 1m; xmlSchemaAny2.ProcessContents = XmlSchemaContentProcessing.Lax; xmlSchemaSequence.Items.Add(xmlSchemaAny2); XmlSchemaAttribute xmlSchemaAttribute = new XmlSchemaAttribute(); xmlSchemaAttribute.Name = "namespace"; xmlSchemaAttribute.FixedValue = dsFrmCostSearch.Namespace; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute); XmlSchemaAttribute xmlSchemaAttribute2 = new XmlSchemaAttribute(); xmlSchemaAttribute2.Name = "tableTypeName"; xmlSchemaAttribute2.FixedValue = "AppendInfoDataTable"; xmlSchemaComplexType.Attributes.Add(xmlSchemaAttribute2); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class ProductRow : DataRow { private ProductDataTable tableProduct; [DebuggerNonUserCode] public string No_Product { get { try { return (string)base[tableProduct.No_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'No_Product' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.No_ProductColumn] = value; } } [DebuggerNonUserCode] public string Name_Product { get { try { return (string)base[tableProduct.Name_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Name_Product' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.Name_ProductColumn] = value; } } [DebuggerNonUserCode] public string InvoiceName_Product { get { try { return (string)base[tableProduct.InvoiceName_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'InvoiceName_Product' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.InvoiceName_ProductColumn] = value; } } [DebuggerNonUserCode] public string Unit_Product { get { try { return (string)base[tableProduct.Unit_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Unit_Product' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.Unit_ProductColumn] = value; } } [DebuggerNonUserCode] public decimal Cost_Product { get { try { return (decimal)base[tableProduct.Cost_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Cost_Product' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.Cost_ProductColumn] = value; } } [DebuggerNonUserCode] public decimal Price_Product { get { try { return (decimal)base[tableProduct.Price_ProductColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'Price_Product' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.Price_ProductColumn] = value; } } [DebuggerNonUserCode] public decimal StockQty_ProductStocks { get { try { return (decimal)base[tableProduct.StockQty_ProductStocksColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'StockQty_ProductStocks' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.StockQty_ProductStocksColumn] = value; } } [DebuggerNonUserCode] public decimal TotalCost { get { try { return (decimal)base[tableProduct.TotalCostColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'TotalCost' in table 'Product' is DBNull.", innerException); } } set { base[tableProduct.TotalCostColumn] = value; } } [DebuggerNonUserCode] internal ProductRow(DataRowBuilder rb) : base(rb) { tableProduct = (ProductDataTable)base.Table; } [DebuggerNonUserCode] public bool IsNo_ProductNull() { return IsNull(tableProduct.No_ProductColumn); } [DebuggerNonUserCode] public void SetNo_ProductNull() { base[tableProduct.No_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsName_ProductNull() { return IsNull(tableProduct.Name_ProductColumn); } [DebuggerNonUserCode] public void SetName_ProductNull() { base[tableProduct.Name_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsInvoiceName_ProductNull() { return IsNull(tableProduct.InvoiceName_ProductColumn); } [DebuggerNonUserCode] public void SetInvoiceName_ProductNull() { base[tableProduct.InvoiceName_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsUnit_ProductNull() { return IsNull(tableProduct.Unit_ProductColumn); } [DebuggerNonUserCode] public void SetUnit_ProductNull() { base[tableProduct.Unit_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsCost_ProductNull() { return IsNull(tableProduct.Cost_ProductColumn); } [DebuggerNonUserCode] public void SetCost_ProductNull() { base[tableProduct.Cost_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsPrice_ProductNull() { return IsNull(tableProduct.Price_ProductColumn); } [DebuggerNonUserCode] public void SetPrice_ProductNull() { base[tableProduct.Price_ProductColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsStockQty_ProductStocksNull() { return IsNull(tableProduct.StockQty_ProductStocksColumn); } [DebuggerNonUserCode] public void SetStockQty_ProductStocksNull() { base[tableProduct.StockQty_ProductStocksColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsTotalCostNull() { return IsNull(tableProduct.TotalCostColumn); } [DebuggerNonUserCode] public void SetTotalCostNull() { base[tableProduct.TotalCostColumn] = Convert.DBNull; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class AppendInfoRow : DataRow { private AppendInfoDataTable tableAppendInfo; [DebuggerNonUserCode] public string CurrentCompany { get { try { return (string)base[tableAppendInfo.CurrentCompanyColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'CurrentCompany' in table 'AppendInfo' is DBNull.", innerException); } } set { base[tableAppendInfo.CurrentCompanyColumn] = value; } } [DebuggerNonUserCode] public string CurrentUser { get { try { return (string)base[tableAppendInfo.CurrentUserColumn]; } catch (InvalidCastException innerException) { throw new StrongTypingException("The value for column 'CurrentUser' in table 'AppendInfo' is DBNull.", innerException); } } set { base[tableAppendInfo.CurrentUserColumn] = value; } } [DebuggerNonUserCode] internal AppendInfoRow(DataRowBuilder rb) : base(rb) { tableAppendInfo = (AppendInfoDataTable)base.Table; } [DebuggerNonUserCode] public bool IsCurrentCompanyNull() { return IsNull(tableAppendInfo.CurrentCompanyColumn); } [DebuggerNonUserCode] public void SetCurrentCompanyNull() { base[tableAppendInfo.CurrentCompanyColumn] = Convert.DBNull; } [DebuggerNonUserCode] public bool IsCurrentUserNull() { return IsNull(tableAppendInfo.CurrentUserColumn); } [DebuggerNonUserCode] public void SetCurrentUserNull() { base[tableAppendInfo.CurrentUserColumn] = Convert.DBNull; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class ProductRowChangeEvent : EventArgs { private ProductRow eventRow; private DataRowAction eventAction; [DebuggerNonUserCode] public ProductRow Row => eventRow; [DebuggerNonUserCode] public DataRowAction Action => eventAction; [DebuggerNonUserCode] public ProductRowChangeEvent(ProductRow row, DataRowAction action) { eventRow = row; eventAction = action; } } [GeneratedCode("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")] public class AppendInfoRowChangeEvent : EventArgs { private AppendInfoRow eventRow; private DataRowAction eventAction; [DebuggerNonUserCode] public AppendInfoRow Row => eventRow; [DebuggerNonUserCode] public DataRowAction Action => eventAction; [DebuggerNonUserCode] public AppendInfoRowChangeEvent(AppendInfoRow row, DataRowAction action) { eventRow = row; eventAction = action; } } private ProductDataTable tableProduct; private AppendInfoDataTable tableAppendInfo; private SchemaSerializationMode _schemaSerializationMode = SchemaSerializationMode.IncludeSchema; [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] [DebuggerNonUserCode] public ProductDataTable Product => tableProduct; [DebuggerNonUserCode] [Browsable(false)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public AppendInfoDataTable AppendInfo => tableAppendInfo; [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)] [DebuggerNonUserCode] public override SchemaSerializationMode SchemaSerializationMode { get { return _schemaSerializationMode; } set { _schemaSerializationMode = value; } } [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DebuggerNonUserCode] public new DataTableCollection Tables => base.Tables; [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [DebuggerNonUserCode] public new DataRelationCollection Relations => base.Relations; [DebuggerNonUserCode] public dsFrmCostSearch() { BeginInit(); InitClass(); CollectionChangeEventHandler value = SchemaChanged; base.Tables.CollectionChanged += value; base.Relations.CollectionChanged += value; EndInit(); } [DebuggerNonUserCode] protected dsFrmCostSearch(SerializationInfo info, StreamingContext context) : base(info, context, ConstructSchema: false) { if (IsBinarySerialized(info, context)) { InitVars(initTable: false); CollectionChangeEventHandler value = SchemaChanged; Tables.CollectionChanged += value; Relations.CollectionChanged += value; return; } string s = (string)info.GetValue("XmlSchema", typeof(string)); if (DetermineSchemaSerializationMode(info, context) == SchemaSerializationMode.IncludeSchema) { DataSet dataSet = new DataSet(); dataSet.ReadXmlSchema(new XmlTextReader(new StringReader(s))); if (dataSet.Tables["Product"] != null) { base.Tables.Add(new ProductDataTable(dataSet.Tables["Product"])); } if (dataSet.Tables["AppendInfo"] != null) { base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"])); } base.DataSetName = dataSet.DataSetName; base.Prefix = dataSet.Prefix; base.Namespace = dataSet.Namespace; base.Locale = dataSet.Locale; base.CaseSensitive = dataSet.CaseSensitive; base.EnforceConstraints = dataSet.EnforceConstraints; Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add); InitVars(); } else { ReadXmlSchema(new XmlTextReader(new StringReader(s))); } GetSerializationData(info, context); CollectionChangeEventHandler value2 = SchemaChanged; base.Tables.CollectionChanged += value2; Relations.CollectionChanged += value2; } [DebuggerNonUserCode] protected override void InitializeDerivedDataSet() { BeginInit(); InitClass(); EndInit(); } [DebuggerNonUserCode] public override DataSet Clone() { dsFrmCostSearch dsFrmCostSearch = (dsFrmCostSearch)base.Clone(); dsFrmCostSearch.InitVars(); dsFrmCostSearch.SchemaSerializationMode = SchemaSerializationMode; return dsFrmCostSearch; } [DebuggerNonUserCode] protected override bool ShouldSerializeTables() { return false; } [DebuggerNonUserCode] protected override bool ShouldSerializeRelations() { return false; } [DebuggerNonUserCode] protected override void ReadXmlSerializable(XmlReader reader) { if (DetermineSchemaSerializationMode(reader) == SchemaSerializationMode.IncludeSchema) { Reset(); DataSet dataSet = new DataSet(); dataSet.ReadXml(reader); if (dataSet.Tables["Product"] != null) { base.Tables.Add(new ProductDataTable(dataSet.Tables["Product"])); } if (dataSet.Tables["AppendInfo"] != null) { base.Tables.Add(new AppendInfoDataTable(dataSet.Tables["AppendInfo"])); } base.DataSetName = dataSet.DataSetName; base.Prefix = dataSet.Prefix; base.Namespace = dataSet.Namespace; base.Locale = dataSet.Locale; base.CaseSensitive = dataSet.CaseSensitive; base.EnforceConstraints = dataSet.EnforceConstraints; Merge(dataSet, preserveChanges: false, MissingSchemaAction.Add); InitVars(); } else { ReadXml(reader); InitVars(); } } [DebuggerNonUserCode] protected override XmlSchema GetSchemaSerializable() { MemoryStream memoryStream = new MemoryStream(); WriteXmlSchema(new XmlTextWriter(memoryStream, null)); memoryStream.Position = 0L; return XmlSchema.Read(new XmlTextReader(memoryStream), null); } [DebuggerNonUserCode] internal void InitVars() { InitVars(initTable: true); } [DebuggerNonUserCode] internal void InitVars(bool initTable) { tableProduct = (ProductDataTable)base.Tables["Product"]; if (initTable && tableProduct != null) { tableProduct.InitVars(); } tableAppendInfo = (AppendInfoDataTable)base.Tables["AppendInfo"]; if (initTable && tableAppendInfo != null) { tableAppendInfo.InitVars(); } } [DebuggerNonUserCode] private void InitClass() { base.DataSetName = "dsFrmCostSearch"; base.Prefix = ""; base.Namespace = "http://tempuri.org/dsFrmCostSearch.xsd"; base.EnforceConstraints = true; SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; tableProduct = new ProductDataTable(); base.Tables.Add(tableProduct); tableAppendInfo = new AppendInfoDataTable(); base.Tables.Add(tableAppendInfo); } [DebuggerNonUserCode] private bool ShouldSerializeProduct() { return false; } [DebuggerNonUserCode] private bool ShouldSerializeAppendInfo() { return false; } [DebuggerNonUserCode] private void SchemaChanged(object sender, CollectionChangeEventArgs e) { if (e.Action == CollectionChangeAction.Remove) { InitVars(); } } [DebuggerNonUserCode] public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs) { dsFrmCostSearch dsFrmCostSearch = new dsFrmCostSearch(); XmlSchemaComplexType xmlSchemaComplexType = new XmlSchemaComplexType(); XmlSchemaSequence xmlSchemaSequence = new XmlSchemaSequence(); xs.Add(dsFrmCostSearch.GetSchemaSerializable()); XmlSchemaAny xmlSchemaAny = new XmlSchemaAny(); xmlSchemaAny.Namespace = dsFrmCostSearch.Namespace; xmlSchemaSequence.Items.Add(xmlSchemaAny); xmlSchemaComplexType.Particle = xmlSchemaSequence; return xmlSchemaComplexType; } } }