?? zhu.cs
字號:
public event _TableRowChangeEventHandler _TableRowDeleted;
public event _TableRowChangeEventHandler _TableRowDeleting;
public void Add_TableRow(_TableRow row) {
this.Rows.Add(row);
}
public _TableRow Add_TableRow(string 床號, string 棟號, string 進出實況) {
_TableRow row_TableRow = ((_TableRow)(this.NewRow()));
row_TableRow.ItemArray = new object[] {
床號,
棟號,
進出實況};
this.Rows.Add(row_TableRow);
return row_TableRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
_TableDataTable cln = ((_TableDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new _TableDataTable();
}
internal void InitVars() {
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進出實況);
}
public _TableRow New_TableRow() {
return ((_TableRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new _TableRow(builder);
}
protected override System.Type GetRowType() {
return typeof(_TableRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this._TableRowChanged != null)) {
this._TableRowChanged(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this._TableRowChanging != null)) {
this._TableRowChanging(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this._TableRowDeleted != null)) {
this._TableRowDeleted(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this._TableRowDeleting != null)) {
this._TableRowDeleting(this, new _TableRowChangeEvent(((_TableRow)(e.Row)), e.Action));
}
}
public void Remove_TableRow(_TableRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class _TableRow : DataRow {
private _TableDataTable table_Table;
internal _TableRow(DataRowBuilder rb) :
base(rb) {
this.table_Table = ((_TableDataTable)(this.Table));
}
public string 床號 {
get {
try {
return ((string)(this[this.table_Table.床號Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table_Table.床號Column] = value;
}
}
public string 棟號 {
get {
try {
return ((string)(this[this.table_Table.棟號Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table_Table.棟號Column] = value;
}
}
public string 進出實況 {
get {
try {
return ((string)(this[this.table_Table.進出實況Column]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("無法獲取值,因為它是 DBNull。", e);
}
}
set {
this[this.table_Table.進出實況Column] = value;
}
}
public bool Is床號Null() {
return this.IsNull(this.table_Table.床號Column);
}
public void Set床號Null() {
this[this.table_Table.床號Column] = System.Convert.DBNull;
}
public bool Is棟號Null() {
return this.IsNull(this.table_Table.棟號Column);
}
public void Set棟號Null() {
this[this.table_Table.棟號Column] = System.Convert.DBNull;
}
public bool Is進出實況Null() {
return this.IsNull(this.table_Table.進出實況Column);
}
public void Set進出實況Null() {
this[this.table_Table.進出實況Column] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class _TableRowChangeEvent : EventArgs {
private _TableRow eventRow;
private DataRowAction eventAction;
public _TableRowChangeEvent(_TableRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public _TableRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -