📄 configuredaccounteventargs.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using GPCore.Protocols;
namespace GPCore.Args
{
/// <summary>
/// EventArgs to hold all the information necessary
/// for the creation of a new account.
/// </summary>
public class ConfiguredAccountEventArgs : EventArgs
{
private Protocol prot;
/// <summary>
/// Gets or sets the IProtocol that this account connects with.
/// </summary>
public Protocol Protocol
{
get { return prot; }
}
private bool auto;
/// <summary>
/// Gets or sets whether or not to sign when the program starts.
/// </summary>
public bool AutoSignOn
{
get { return auto; }
}
private object[] args;
/// <summary>
/// An array to hold any extra information your IProtocol might demand.
/// </summary>
public object[] Args
{
get { return args; }
}
/// <summary>
/// Constructor for ConfiguredAccountEventArgs.
/// </summary>
public ConfiguredAccountEventArgs(Protocol protocol) : this(protocol, false, null) { }
/// <summary>
/// Constructor for ConfiguredAccountEventArgs.
/// </summary>
public ConfiguredAccountEventArgs(Protocol protocol, bool auto) : this(protocol, auto, null) { }
/// <summary>
/// Constructor for ConfiguredAccountEventArgs.
/// </summary>
public ConfiguredAccountEventArgs(Protocol protocol, bool auto, object[] args)
{
this.prot = protocol;
this.auto = auto;
this.args = args;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -