📄 product.cs
字号:
get {
return this.evArgs.Column;
}
}
public short ProposedValue {
get {
return ((short)(this.evArgs.ProposedValue));
}
set {
this.evArgs.ProposedValue = ((short)(value));
}
}
}
public delegate void UnitsOnOrderChangeEventHandler(ProductDataTable sender, UnitsOnOrderChangeEventArg e);
[System.Diagnostics.DebuggerStepThrough()]
public class UnitsOnOrderChangeEventArg : System.EventArgs {
private System.Data.DataColumnChangeEventArgs evArgs;
public UnitsOnOrderChangeEventArg(System.Data.DataColumnChangeEventArgs args) {
this.evArgs = args;
}
public ProductRow Row {
get {
return ((ProductRow)(this.evArgs.Row));
}
}
public System.Data.DataColumn UnitsOnOrderColumn {
get {
return this.evArgs.Column;
}
}
public short ProposedValue {
get {
return ((short)(this.evArgs.ProposedValue));
}
set {
this.evArgs.ProposedValue = ((short)(value));
}
}
}
public delegate void ReorderLevelChangeEventHandler(ProductDataTable sender, ReorderLevelChangeEventArg e);
[System.Diagnostics.DebuggerStepThrough()]
public class ReorderLevelChangeEventArg : System.EventArgs {
private System.Data.DataColumnChangeEventArgs evArgs;
public ReorderLevelChangeEventArg(System.Data.DataColumnChangeEventArgs args) {
this.evArgs = args;
}
public ProductRow Row {
get {
return ((ProductRow)(this.evArgs.Row));
}
}
public System.Data.DataColumn ReorderLevelColumn {
get {
return this.evArgs.Column;
}
}
public short ProposedValue {
get {
return ((short)(this.evArgs.ProposedValue));
}
set {
this.evArgs.ProposedValue = ((short)(value));
}
}
}
public delegate void DiscontinuedChangeEventHandler(ProductDataTable sender, DiscontinuedChangeEventArg e);
[System.Diagnostics.DebuggerStepThrough()]
public class DiscontinuedChangeEventArg : System.EventArgs {
private System.Data.DataColumnChangeEventArgs evArgs;
public DiscontinuedChangeEventArg(System.Data.DataColumnChangeEventArgs args) {
this.evArgs = args;
}
public ProductRow Row {
get {
return ((ProductRow)(this.evArgs.Row));
}
}
public System.Data.DataColumn DiscontinuedColumn {
get {
return this.evArgs.Column;
}
}
public bool ProposedValue {
get {
return ((bool)(this.evArgs.ProposedValue));
}
set {
this.evArgs.ProposedValue = ((bool)(value));
}
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class ProductRow : System.Data.DataRow {
private ProductDataTable tableProduct;
internal ProductRow(System.Data.DataRowBuilder rb) :
base(rb) {
this.tableProduct = ((ProductDataTable)(this.Table));
}
public int ProductID {
get {
return ((int)(this[this.tableProduct.ProductIDColumn]));
}
set {
this[this.tableProduct.ProductIDColumn] = value;
}
}
public string ProductName {
get {
return ((string)(this[this.tableProduct.ProductNameColumn]));
}
set {
this[this.tableProduct.ProductNameColumn] = value;
}
}
public int SupplierID {
get {
try {
return ((int)(this[this.tableProduct.SupplierIDColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("StrongTyping_CannotAccessDBNull", e);
}
}
set {
this[this.tableProduct.SupplierIDColumn] = value;
}
}
public int CategoryID {
get {
try {
return ((int)(this[this.tableProduct.CategoryIDColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("StrongTyping_CannotAccessDBNull", e);
}
}
set {
this[this.tableProduct.CategoryIDColumn] = value;
}
}
public string QuantityPerUnit {
get {
try {
return ((string)(this[this.tableProduct.QuantityPerUnitColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("StrongTyping_CannotAccessDBNull", e);
}
}
set {
this[this.tableProduct.QuantityPerUnitColumn] = value;
}
}
public System.Decimal UnitPrice {
get {
try {
return ((System.Decimal)(this[this.tableProduct.UnitPriceColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("StrongTyping_CannotAccessDBNull", e);
}
}
set {
this[this.tableProduct.UnitPriceColumn] = value;
}
}
public short UnitsInStock {
get {
try {
return ((short)(this[this.tableProduct.UnitsInStockColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("StrongTyping_CannotAccessDBNull", e);
}
}
set {
this[this.tableProduct.UnitsInStockColumn] = value;
}
}
public short UnitsOnOrder {
get {
try {
return ((short)(this[this.tableProduct.UnitsOnOrderColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("StrongTyping_CannotAccessDBNull", e);
}
}
set {
this[this.tableProduct.UnitsOnOrderColumn] = value;
}
}
public short ReorderLevel {
get {
try {
return ((short)(this[this.tableProduct.ReorderLevelColumn]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("StrongTyping_CannotAccessDBNull", e);
}
}
set {
this[this.tableProduct.ReorderLevelColumn] = value;
}
}
public bool Discontinued {
get {
return ((bool)(this[this.tableProduct.DiscontinuedColumn]));
}
set {
this[this.tableProduct.DiscontinuedColumn] = value;
}
}
public bool IsSupplierIDNull() {
return this.IsNull(this.tableProduct.SupplierIDColumn);
}
public void SetSupplierIDNull() {
this[this.tableProduct.SupplierIDColumn] = System.Convert.DBNull;
}
public bool IsCategoryIDNull() {
return this.IsNull(this.tableProduct.CategoryIDColumn);
}
public void SetCategoryIDNull() {
this[this.tableProduct.CategoryIDColumn] = System.Convert.DBNull;
}
public bool IsQuantityPerUnitNull() {
return this.IsNull(this.tableProduct.QuantityPerUnitColumn);
}
public void SetQuantityPerUnitNull() {
this[this.tableProduct.QuantityPerUnitColumn] = System.Convert.DBNull;
}
public bool IsUnitPriceNull() {
return this.IsNull(this.tableProduct.UnitPriceColumn);
}
public void SetUnitPriceNull() {
this[this.tableProduct.UnitPriceColumn] = System.Convert.DBNull;
}
public bool IsUnitsInStockNull() {
return this.IsNull(this.tableProduct.UnitsInStockColumn);
}
public void SetUnitsInStockNull() {
this[this.tableProduct.UnitsInStockColumn] = System.Convert.DBNull;
}
public bool IsUnitsOnOrderNull() {
return this.IsNull(this.tableProduct.UnitsOnOrderColumn);
}
public void SetUnitsOnOrderNull() {
this[this.tableProduct.UnitsOnOrderColumn] = System.Convert.DBNull;
}
public bool IsReorderLevelNull() {
return this.IsNull(this.tableProduct.ReorderLevelColumn);
}
public void SetReorderLevelNull() {
this[this.tableProduct.ReorderLevelColumn] = System.Convert.DBNull;
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class ProductRowChangeEvent : System.EventArgs {
private ProductRow eventRow;
private System.Data.DataRowAction eventAction;
public ProductRowChangeEvent(ProductRow row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public ProductRow Row {
get {
return this.eventRow;
}
}
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -