📄 ee.cs
字号:
}
public 厂商情况Row this[int index] {
get {
return ((厂商情况Row)(this.Rows[index]));
}
}
public event 厂商情况RowChangeEventHandler 厂商情况RowChanged;
public event 厂商情况RowChangeEventHandler 厂商情况RowChanging;
public event 厂商情况RowChangeEventHandler 厂商情况RowDeleted;
public event 厂商情况RowChangeEventHandler 厂商情况RowDeleting;
public void Add厂商情况Row(厂商情况Row row) {
this.Rows.Add(row);
}
public 厂商情况Row Add厂商情况Row(string 厂商, string 电话, string 地址, string 联系人) {
厂商情况Row row厂商情况Row = ((厂商情况Row)(this.NewRow()));
row厂商情况Row.ItemArray = new object[] {
厂商,
电话,
地址,
联系人};
this.Rows.Add(row厂商情况Row);
return row厂商情况Row;
}
public 厂商情况Row FindBy厂商(string 厂商) {
return ((厂商情况Row)(this.Rows.Find(new object[] {
厂商})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
厂商情况DataTable cln = ((厂商情况DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new 厂商情况DataTable();
}
internal void InitVars() {
this.column厂商 = this.Columns["厂商"];
this.column电话 = this.Columns["电话"];
this.column地址 = this.Columns["地址"];
this.column联系人 = this.Columns["联系人"];
}
private void InitClass() {
this.column厂商 = new DataColumn("厂商", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column厂商);
this.column电话 = new DataColumn("电话", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column电话);
this.column地址 = new DataColumn("地址", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column地址);
this.column联系人 = new DataColumn("联系人", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.column联系人);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.column厂商}, true));
this.column厂商.AllowDBNull = false;
this.column厂商.Unique = true;
this.column电话.AllowDBNull = false;
this.column地址.AllowDBNull = false;
this.column联系人.AllowDBNull = false;
}
public 厂商情况Row New厂商情况Row() {
return ((厂商情况Row)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new 厂商情况Row(builder);
}
protected override System.Type GetRowType() {
return typeof(厂商情况Row);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.厂商情况RowChanged != null)) {
this.厂商情况RowChanged(this, new 厂商情况RowChangeEvent(((厂商情况Row)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.厂商情况RowChanging != null)) {
this.厂商情况RowChanging(this, new 厂商情况RowChangeEvent(((厂商情况Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.厂商情况RowDeleted != null)) {
this.厂商情况RowDeleted(this, new 厂商情况RowChangeEvent(((厂商情况Row)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.厂商情况RowDeleting != null)) {
this.厂商情况RowDeleting(this, new 厂商情况RowChangeEvent(((厂商情况Row)(e.Row)), e.Action));
}
}
public void Remove厂商情况Row(厂商情况Row row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 厂商情况Row : DataRow {
private 厂商情况DataTable table厂商情况;
internal 厂商情况Row(DataRowBuilder rb) :
base(rb) {
this.table厂商情况 = ((厂商情况DataTable)(this.Table));
}
public string 厂商 {
get {
return ((string)(this[this.table厂商情况.厂商Column]));
}
set {
this[this.table厂商情况.厂商Column] = value;
}
}
public string 电话 {
get {
return ((string)(this[this.table厂商情况.电话Column]));
}
set {
this[this.table厂商情况.电话Column] = value;
}
}
public string 地址 {
get {
return ((string)(this[this.table厂商情况.地址Column]));
}
set {
this[this.table厂商情况.地址Column] = value;
}
}
public string 联系人 {
get {
return ((string)(this[this.table厂商情况.联系人Column]));
}
set {
this[this.table厂商情况.联系人Column] = value;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class 厂商情况RowChangeEvent : EventArgs {
private 厂商情况Row eventRow;
private DataRowAction eventAction;
public 厂商情况RowChangeEvent(厂商情况Row row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public 厂商情况Row Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -