📄 datasetmailaccounts.cs
字号:
internal DataColumn OutUserIDColumn {
get {
return this.columnOutUserID;
}
}
internal DataColumn ServerTypeColumn {
get {
return this.columnServerType;
}
}
internal DataColumn TypeColumn {
get {
return this.columnType;
}
}
public MailAccountsRow this[int index] {
get {
return ((MailAccountsRow)(this.Rows[index]));
}
}
public event MailAccountsRowChangeEventHandler MailAccountsRowChanged;
public event MailAccountsRowChangeEventHandler MailAccountsRowChanging;
public event MailAccountsRowChangeEventHandler MailAccountsRowDeleted;
public event MailAccountsRowChangeEventHandler MailAccountsRowDeleting;
public void AddMailAccountsRow(MailAccountsRow row) {
this.Rows.Add(row);
}
public MailAccountsRow AddMailAccountsRow(string Account, string IncomingMailServer, string InPassword, short InPort, string InUserID, bool IsLeaveMessage, bool IsOutgoingAuthorized, bool IsTheSameWithIncoming, string OutgoingMailServer, string OutPassword, short OutPort, string OutUserID, string ServerType, string Type) {
MailAccountsRow rowMailAccountsRow = ((MailAccountsRow)(this.NewRow()));
rowMailAccountsRow.ItemArray = new object[] {
Account,
IncomingMailServer,
InPassword,
InPort,
InUserID,
IsLeaveMessage,
IsOutgoingAuthorized,
IsTheSameWithIncoming,
null,
OutgoingMailServer,
OutPassword,
OutPort,
OutUserID,
ServerType,
Type};
this.Rows.Add(rowMailAccountsRow);
return rowMailAccountsRow;
}
public MailAccountsRow FindByMailAccountID(int MailAccountID) {
return ((MailAccountsRow)(this.Rows.Find(new object[] {
MailAccountID})));
}
public System.Collections.IEnumerator GetEnumerator() {
return this.Rows.GetEnumerator();
}
public override DataTable Clone() {
MailAccountsDataTable cln = ((MailAccountsDataTable)(base.Clone()));
cln.InitVars();
return cln;
}
protected override DataTable CreateInstance() {
return new MailAccountsDataTable();
}
internal void InitVars() {
this.columnAccount = this.Columns["Account"];
this.columnIncomingMailServer = this.Columns["IncomingMailServer"];
this.columnInPassword = this.Columns["InPassword"];
this.columnInPort = this.Columns["InPort"];
this.columnInUserID = this.Columns["InUserID"];
this.columnIsLeaveMessage = this.Columns["IsLeaveMessage"];
this.columnIsOutgoingAuthorized = this.Columns["IsOutgoingAuthorized"];
this.columnIsTheSameWithIncoming = this.Columns["IsTheSameWithIncoming"];
this.columnMailAccountID = this.Columns["MailAccountID"];
this.columnOutgoingMailServer = this.Columns["OutgoingMailServer"];
this.columnOutPassword = this.Columns["OutPassword"];
this.columnOutPort = this.Columns["OutPort"];
this.columnOutUserID = this.Columns["OutUserID"];
this.columnServerType = this.Columns["ServerType"];
this.columnType = this.Columns["Type"];
}
private void InitClass() {
this.columnAccount = new DataColumn("Account", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnAccount);
this.columnIncomingMailServer = new DataColumn("IncomingMailServer", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnIncomingMailServer);
this.columnInPassword = new DataColumn("InPassword", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnInPassword);
this.columnInPort = new DataColumn("InPort", typeof(short), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnInPort);
this.columnInUserID = new DataColumn("InUserID", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnInUserID);
this.columnIsLeaveMessage = new DataColumn("IsLeaveMessage", typeof(bool), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnIsLeaveMessage);
this.columnIsOutgoingAuthorized = new DataColumn("IsOutgoingAuthorized", typeof(bool), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnIsOutgoingAuthorized);
this.columnIsTheSameWithIncoming = new DataColumn("IsTheSameWithIncoming", typeof(bool), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnIsTheSameWithIncoming);
this.columnMailAccountID = new DataColumn("MailAccountID", typeof(int), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnMailAccountID);
this.columnOutgoingMailServer = new DataColumn("OutgoingMailServer", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnOutgoingMailServer);
this.columnOutPassword = new DataColumn("OutPassword", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnOutPassword);
this.columnOutPort = new DataColumn("OutPort", typeof(short), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnOutPort);
this.columnOutUserID = new DataColumn("OutUserID", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnOutUserID);
this.columnServerType = new DataColumn("ServerType", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnServerType);
this.columnType = new DataColumn("Type", typeof(string), null, System.Data.MappingType.Element);
this.Columns.Add(this.columnType);
this.Constraints.Add(new UniqueConstraint("Constraint1", new DataColumn[] {
this.columnMailAccountID}, true));
this.columnMailAccountID.AutoIncrement = true;
this.columnMailAccountID.AllowDBNull = false;
this.columnMailAccountID.Unique = true;
}
public MailAccountsRow NewMailAccountsRow() {
return ((MailAccountsRow)(this.NewRow()));
}
protected override DataRow NewRowFromBuilder(DataRowBuilder builder) {
return new MailAccountsRow(builder);
}
protected override System.Type GetRowType() {
return typeof(MailAccountsRow);
}
protected override void OnRowChanged(DataRowChangeEventArgs e) {
base.OnRowChanged(e);
if ((this.MailAccountsRowChanged != null)) {
this.MailAccountsRowChanged(this, new MailAccountsRowChangeEvent(((MailAccountsRow)(e.Row)), e.Action));
}
}
protected override void OnRowChanging(DataRowChangeEventArgs e) {
base.OnRowChanging(e);
if ((this.MailAccountsRowChanging != null)) {
this.MailAccountsRowChanging(this, new MailAccountsRowChangeEvent(((MailAccountsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleted(DataRowChangeEventArgs e) {
base.OnRowDeleted(e);
if ((this.MailAccountsRowDeleted != null)) {
this.MailAccountsRowDeleted(this, new MailAccountsRowChangeEvent(((MailAccountsRow)(e.Row)), e.Action));
}
}
protected override void OnRowDeleting(DataRowChangeEventArgs e) {
base.OnRowDeleting(e);
if ((this.MailAccountsRowDeleting != null)) {
this.MailAccountsRowDeleting(this, new MailAccountsRowChangeEvent(((MailAccountsRow)(e.Row)), e.Action));
}
}
public void RemoveMailAccountsRow(MailAccountsRow row) {
this.Rows.Remove(row);
}
}
[System.Diagnostics.DebuggerStepThrough()]
public class MailAccountsRow : DataRow {
private MailAccountsDataTable tableMailAccounts;
internal MailAccountsRow(DataRowBuilder rb) :
base(rb) {
this.tableMailAccounts = ((MailAccountsDataTable)(this.Table));
}
public string Account {
get {
try {
return ((string)(this[this.tableMailAccounts.AccountColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableMailAccounts.AccountColumn] = value;
}
}
public string IncomingMailServer {
get {
try {
return ((string)(this[this.tableMailAccounts.IncomingMailServerColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableMailAccounts.IncomingMailServerColumn] = value;
}
}
public string InPassword {
get {
try {
return ((string)(this[this.tableMailAccounts.InPasswordColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableMailAccounts.InPasswordColumn] = value;
}
}
public short InPort {
get {
try {
return ((short)(this[this.tableMailAccounts.InPortColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableMailAccounts.InPortColumn] = value;
}
}
public string InUserID {
get {
try {
return ((string)(this[this.tableMailAccounts.InUserIDColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
set {
this[this.tableMailAccounts.InUserIDColumn] = value;
}
}
public bool IsLeaveMessage {
get {
try {
return ((bool)(this[this.tableMailAccounts.IsLeaveMessageColumn]));
}
catch (InvalidCastException e) {
throw new StrongTypingException("无法获取值,因为它是 DBNull。", e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -