📄 reference.cs
字号:
private bool ShouldSerializeIssueTypes() {
return false;
}
private bool ShouldSerializeStaffers() {
return false;
}
private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
this.InitVars();
}
}
public delegate void IssueHistoryRowChangeEventHandler(object sender, IssueHistoryRowChangeEvent e);
public delegate void IssuesRowChangeEventHandler(object sender, IssuesRowChangeEvent e);
public delegate void ConflictsRowChangeEventHandler(object sender, ConflictsRowChangeEvent e);
public delegate void IssueTypesRowChangeEventHandler(object sender, IssueTypesRowChangeEvent e);
public delegate void StaffersRowChangeEventHandler(object sender, StaffersRowChangeEvent e);
[System.Diagnostics.DebuggerStepThrough()]
public class IssueHistoryDataTable : DataTable, System.Collections.IEnumerable {
private DataColumn columnIssueHistoryID;
private DataColumn columnStafferID;
private DataColumn columnIssueID;
private DataColumn columnComment;
private DataColumn columnDateCreated;
private DataColumn columnDisplayName;
internal IssueHistoryDataTable() :
base("IssueHistory") {
this.InitClass();
}
internal IssueHistoryDataTable(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 IssueHistoryIDColumn {
get {
return this.columnIssueHistoryID;
}
}
internal DataColumn StafferIDColumn {
get {
return this.columnStafferID;
}
}
internal DataColumn IssueIDColumn {
get {
return this.columnIssueID;
}
}
internal DataColumn CommentColumn {
get {
return this.columnComment;
}
}
internal DataColumn DateCreatedColumn {
get {
return this.columnDateCreated;
}
}
internal DataColumn DisplayNameColumn {
get {
return this.columnDisplayName;
}
}
public IssueHistoryRow this[int index] {
get {
return ((IssueHistoryRow)(this.Rows[index]));
}
}
public event IssueHistoryRowChangeEventHandler IssueHistoryRowChanged;
public event IssueHistoryRowChangeEventHandler IssueHistoryRowChanging;
public event IssueHistoryRowChangeEventHandler IssueHistoryRowDeleted;
public event IssueHistoryRowChangeEventHandler IssueHistoryRowDeleting;
public void AddIssueHistoryRow(IssueHistoryRow row) {
this.Rows.Add(row);
}
public IssueHistoryRow AddIssueHistoryRow(int StafferID, int IssueID, string Comment, System.DateTime DateCreated, string DisplayName) {
IssueHistoryRow rowIssueHistoryRow = ((IssueHistoryRow)(this.NewRow()));
rowIssueHistoryRow.ItemArray = new object[] {
null,
StafferID,
IssueID,
Comment,
DateCreated,
DisplayName};
this.Rows.Add(rowIssueHistoryRow);
return rowIssueHistoryRow;
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
IssueHistoryDataTable cln = ((IssueHistoryDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new IssueHistoryDataTable();
}
internal void InitVars() {
this.columnIssueHistoryID = this.Columns["IssueHistoryID"];
this.columnStafferID = this.Columns["StafferID"];
this.columnIssueID = this.Columns["IssueID"];
this.columnComment = this.Columns["Comment"];
this.columnDateCreated = this.Columns["DateCreated"];
this.columnDisplayName = this.Columns["DisplayName"];
}
private void InitClass() {
this.columnIssueHistoryID = new DataColumn("IssueHistoryID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnIssueHistoryID);
this.columnStafferID = new DataColumn("StafferID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnStafferID);
this.columnIssueID = new DataColumn("IssueID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnIssueID);
this.columnComment = new DataColumn("Comment", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnComment);
this.columnDateCreated = new DataColumn("DateCreated", typeof(System.DateTime), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDateCreated);
this.columnDisplayName = new DataColumn("DisplayName", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnDisplayName);
this.columnIssueHistoryID.AutoIncrement = true;
this.columnIssueHistoryID.AllowDBNull = false;
this.columnIssueHistoryID.ReadOnly = true;
this.columnStafferID.AllowDBNull = false;
this.columnIssueID.AllowDBNull = false;
this.columnComment.AllowDBNull = false;
this.columnDateCreated.AllowDBNull = false;
this.columnDisplayName.AllowDBNull = false;
}
public IssueHistoryRow NewIssueHistoryRow() {
return ((IssueHistoryRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new IssueHistoryRow(builder);
}
protected override System.Type GetRowType() {
return typeof(IssueHistoryRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.IssueHistoryRowChanged != null)) {
this.IssueHistoryRowChanged(this, new IssueHistoryRowChangeEvent(((IssueHistoryRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.IssueHistoryRowChanging != null)) {
this.IssueHistoryRowChanging(this, new IssueHistoryRowChangeEvent(((IssueHistoryRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.IssueHistoryRowDeleted != null)) {
this.IssueHistoryRowDeleted(this, new IssueHistoryRowChangeEvent(((IssueHistoryRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.IssueHistoryRowDeleting != null)) {
this.IssueHistoryRowDeleting(this, new IssueHistoryRowChangeEvent(((IssueHistoryRow)(e.Row)), e.Action));
}
}
public void RemoveIssueHistoryRow(IssueHistoryRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class IssueHistoryRow : DataRow {
private IssueHistoryDataTable tableIssueHistory;
internal IssueHistoryRow(DataRowBuilder rb) :
base(rb) {
this.tableIssueHistory = ((IssueHistoryDataTable)(this.Table));
}
public int IssueHistoryID {
get {
return ((int)(this[this.tableIssueHistory.IssueHistoryIDColumn]));
}
set {
this[this.tableIssueHistory.IssueHistoryIDColumn] = value;
}
}
public int StafferID {
get {
return ((int)(this[this.tableIssueHistory.StafferIDColumn]));
}
set {
this[this.tableIssueHistory.StafferIDColumn] = value;
}
}
public int IssueID {
get {
return ((int)(this[this.tableIssueHistory.IssueIDColumn]));
}
set {
this[this.tableIssueHistory.IssueIDColumn] = value;
}
}
public string Comment {
get {
return ((string)(this[this.tableIssueHistory.CommentColumn]));
}
set {
this[this.tableIssueHistory.CommentColumn] = value;
}
}
public System.DateTime DateCreated {
get {
return ((System.DateTime)(this[this.tableIssueHistory.DateCreatedColumn]));
}
set {
this[this.tableIssueHistory.DateCreatedColumn] = value;
}
}
public string DisplayName {
get {
return ((string)(this[this.tableIssueHistory.DisplayNameColumn]));
}
set {
this[this.tableIssueHistory.DisplayNameColumn] = value;
}
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class IssueHistoryRowChangeEvent : EventArgs {
private IssueHistoryRow eventRow;
private DataRowAction eventAction;
public IssueHistoryRowChangeEvent(IssueHistoryRow row, DataRowAction action) {
this.eventRow = row;
this.eventAction = action;
}
public IssueHistoryRow Row {
get {
return this.eventRow;
}
}
public DataRowAction Action {
get {
return this.eventAction;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -