📄 shortdata.designer.cs
字号:
public event 数据RowChangeEventHandler 数据RowChanging;
public event 数据RowChangeEventHandler 数据RowChanged;
public event 数据RowChangeEventHandler 数据RowDeleting;
public event 数据RowChangeEventHandler 数据RowDeleted;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Add数据Row(数据Row row) {
this.Rows.Add(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 数据Row Add数据Row(float 结果) {
数据Row row数据Row = ((数据Row)(this.NewRow()));
row数据Row.ItemArray = new object[] {
结果};
this.Rows.Add(row数据Row);
return row数据Row;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public virtual System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public override System.Data.DataTable Clone() {
数据DataTable cln = ((数据DataTable)(base.Clone()));
cln.InitVars();
return cln;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataTable CreateInstance() {
return new 数据DataTable();
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal void InitVars() {
this.column结果 = base.Columns["结果"];
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
private void InitClass() {
this.column结果 = new System.Data.DataColumn("结果", typeof(float), null, System.Data.MappingType.Element);
base.Columns.Add(this.column结果);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 数据Row New数据Row() {
return ((数据Row)(this.NewRow()));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
return new 数据Row(builder);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override System.Type GetRowType() {
return typeof(数据Row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanged(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.数据RowChanged != null)) {
this.数据RowChanged(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowChanging(System.Data.DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.数据RowChanging != null)) {
this.数据RowChanging(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleted(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.数据RowDeleted != null)) {
this.数据RowDeleted(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
protected override void OnRowDeleting(System.Data.DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.数据RowDeleting != null)) {
this.数据RowDeleting(this, new 数据RowChangeEvent(((数据Row)(e.Row)), e.Action));
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Remove数据Row(数据Row row) {
this.Rows.Remove(row);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
ShortData ds = new ShortData();
xs.Add(ds.GetSchemaSerializable());
System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
any1.Namespace = "http://www.w3.org/2001/XMLSchema";
any1.MinOccurs = new decimal(0);
any1.MaxOccurs = decimal.MaxValue;
any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any1);
System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
any2.MinOccurs = new decimal(1);
any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
sequence.Items.Add(any2);
System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
attribute1.Name = "namespace";
attribute1.FixedValue = ds.Namespace;
type.Attributes.Add(attribute1);
System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
attribute2.Name = "tableTypeName";
attribute2.FixedValue = "数据DataTable";
type.Attributes.Add(attribute2);
type.Particle = sequence;
return type;
}
}
public partial class 数据Row : System.Data.DataRow {
private 数据DataTable table数据;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
internal 数据Row(System.Data.DataRowBuilder rb) :
base(rb) {
this.table数据 = ((数据DataTable)(this.Table));
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public float 结果 {
get {
try {
return ((float)(this[this.table数据.结果Column]));
}
catch (System.InvalidCastException e) {
throw new System.Data.StrongTypingException("表“数据”中列“结果”的值为 DBNull。", e);
}
}
set {
this[this.table数据.结果Column] = value;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool Is结果Null() {
return this.IsNull(this.table数据.结果Column);
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Set结果Null() {
this[this.table数据.结果Column] = System.Convert.DBNull;
}
}
public class 数据RowChangeEvent : System.EventArgs {
private 数据Row eventRow;
private System.Data.DataRowAction eventAction;
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 数据RowChangeEvent(数据Row row, System.Data.DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public 数据Row Row {
get {
return this.eventRow;
}
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public System.Data.DataRowAction Action {
get {
return this.eventAction;
}
}
}
}
}
namespace ShortDataUtil {
using System;
using System.Data;
public partial class DesignerUtil {
public static bool IsDesignTime() {
// Determine if this instance is running against .NET Framework by using the MSCoreLib PublicKeyToken
System.Reflection.Assembly mscorlibAssembly = typeof(int).Assembly;
if ((mscorlibAssembly != null)) {
if (mscorlibAssembly.FullName.ToUpper().EndsWith("B77A5C561934E089")) {
return true;
}
}
return false;
}
public static bool IsRunTime() {
// Determine if this instance is running against .NET Compact Framework by using the MSCoreLib PublicKeyToken
System.Reflection.Assembly mscorlibAssembly = typeof(int).Assembly;
if ((mscorlibAssembly != null)) {
if (mscorlibAssembly.FullName.ToUpper().EndsWith("969DB8053D3322AC")) {
return true;
}
}
return false;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -