📄 dsstat.cs
字号:
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.SOweFullInfoRowChanged != null)) {
this.SOweFullInfoRowChanged(this, new SOweFullInfoRowChangeEvent(((SOweFullInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.SOweFullInfoRowChanging != null)) {
this.SOweFullInfoRowChanging(this, new SOweFullInfoRowChangeEvent(((SOweFullInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.SOweFullInfoRowDeleted != null)) {
this.SOweFullInfoRowDeleted(this, new SOweFullInfoRowChangeEvent(((SOweFullInfoRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.SOweFullInfoRowDeleting != null)) {
this.SOweFullInfoRowDeleting(this, new SOweFullInfoRowChangeEvent(((SOweFullInfoRow)(e.Row)), e.Action));
}
}
public void RemoveSOweFullInfoRow(SOweFullInfoRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class SOweFullInfoRow : DataRow {
private SOweFullInfoDataTable tableSOweFullInfo;
internal SOweFullInfoRow(DataRowBuilder rb) :
base(rb) {
this.tableSOweFullInfo = ((SOweFullInfoDataTable)(this.Table));
}
public string Stunumber {
get {
try {
return ((string)(this[this.tableSOweFullInfo.StunumberColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableSOweFullInfo.StunumberColumn] = value;
}
}
public string Name {
get {
try {
return ((string)(this[this.tableSOweFullInfo.NameColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableSOweFullInfo.NameColumn] = value;
}
}
public System.Double Money {
get {
try {
return ((System.Double)(this[this.tableSOweFullInfo.MoneyColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableSOweFullInfo.MoneyColumn] = value;
}
}
public bool IsStunumberNull() {
return this.IsNull(this.tableSOweFullInfo.StunumberColumn);
}
public void SetStunumberNull() {
this[this.tableSOweFullInfo.StunumberColumn] = System.Convert.DBNull;
}
public bool IsNameNull() {
return this.IsNull(this.tableSOweFullInfo.NameColumn);
}
public void SetNameNull() {
this[this.tableSOweFullInfo.NameColumn] = System.Convert.DBNull;
}
public bool IsMoneyNull() {
return this.IsNull(this.tableSOweFullInfo.MoneyColumn);
}
public void SetMoneyNull() {
this[this.tableSOweFullInfo.MoneyColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class SOweFullInfoRowChangeEvent : EventArgs {
private SOweFullInfoRow eventRow;
private DataRowAction eventAction;
public SOweFullInfoRowChangeEvent(SOweFullInfoRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public SOweFullInfoRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class SarrList1DataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnItemName;
private DataColumn columnType;
private DataColumn columnMajor;
private DataColumn columnEnroYear;
internal SarrList1DataTable() :
base("SarrList1") {
this.InitClass();
}
internal SarrList1DataTable(DataTable table) :
base(table.TableName) {
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
this.CaseSensitive = table.CaseSensitive;
}
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
this.Locale = table.Locale;
}
if ((table.Namespace != table.DataSet.Namespace)) {
this.Namespace = table.Namespace;
}
this.Prefix = table.Prefix;
this.MinimumCapacity = table.MinimumCapacity;
this.DisplayExpression = table.DisplayExpression;
}
[System.ComponentModel.Browsable(false)]
public int Count {
get {
return this.Rows.Count;
}
}
internal DataColumn ItemNameColumn {
get {
return this.columnItemName;
}
}
internal DataColumn TypeColumn {
get {
return this.columnType;
}
}
internal DataColumn MajorColumn {
get {
return this.columnMajor;
}
}
internal DataColumn EnroYearColumn {
get {
return this.columnEnroYear;
}
}
public SarrList1Row this[int index] {
get {
return ((SarrList1Row)(this.Rows[index]));
}
}
public event SarrList1RowChangeEventHandler SarrList1RowChanged;
public event SarrList1RowChangeEventHandler SarrList1RowChanging;
public event SarrList1RowChangeEventHandler SarrList1RowDeleted;
public event SarrList1RowChangeEventHandler SarrList1RowDeleting;
public void AddSarrList1Row(SarrList1Row row) {
this.Rows.Add(row);
}
public SarrList1Row AddSarrList1Row(string ItemName, string Type, string Major, string EnroYear) {
SarrList1Row rowSarrList1Row = ((SarrList1Row)(this.NewRow()));
rowSarrList1Row.ItemArray = new object[] {
ItemName,
Type,
Major,
EnroYear};
this.Rows.Add(rowSarrList1Row);
return rowSarrList1Row;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
SarrList1DataTable cln = ((SarrList1DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new SarrList1DataTable();
}
internal void InitVars() {
this.columnItemName = this.Columns["ItemName"];
this.columnType = this.Columns["Type"];
this.columnMajor = this.Columns["Major"];
this.columnEnroYear = this.Columns["EnroYear"];
}
private void InitClass() {
this.columnItemName = new DataColumn("ItemName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnItemName);
this.columnType = new DataColumn("Type", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnType);
this.columnMajor = new DataColumn("Major", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnMajor);
this.columnEnroYear = new DataColumn("EnroYear", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnEnroYear);
}
public SarrList1Row NewSarrList1Row() {
return ((SarrList1Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new SarrList1Row(builder);
}
protected override System.Type GetRowType() {
return typeof(SarrList1Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.SarrList1RowChanged != null)) {
this.SarrList1RowChanged(this, new SarrList1RowChangeEvent(((SarrList1Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.SarrList1RowChanging != null)) {
this.SarrList1RowChanging(this, new SarrList1RowChangeEvent(((SarrList1Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.SarrList1RowDeleted != null)) {
this.SarrList1RowDeleted(this, new SarrList1RowChangeEvent(((SarrList1Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.SarrList1RowDeleting != null)) {
this.SarrList1RowDeleting(this, new SarrList1RowChangeEvent(((SarrList1Row)(e.Row)), e.Action));
}
}
public void RemoveSarrList1Row(SarrList1Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class SarrList1Row : DataRow {
private SarrList1DataTable tableSarrList1;
internal SarrList1Row(DataRowBuilder rb) :
base(rb) {
this.tableSarrList1 = ((SarrList1DataTable)(this.Table));
}
public string ItemName {
get {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -