示例#1
0
文件: Channel.cs 项目: tamaw/SharpIRC
 public Channel(Client client, string name, string key = "")
 {
     Name = name;
     Key = key;
     _client = client;
     Joined += (sender, user) => IsConnected = true;
     Left += (sender, args) => IsConnected = false;
 }
示例#2
0
 public App()
 {
     // Default connection
     IRCClient = new Client
     {
         Nickname = Settings.Default.Nickname,
         RealName = Settings.Default.RealName,
         Server = Settings.Default.Server
     };
 }
示例#3
0
 public Listener(Client client, NetworkStream networkStream)
 {
     _networkStream = networkStream;
     _client = client;
 }
示例#4
0
 public ServerViewModel(Client ircClient)
 {
     _ircClient = ircClient;
     Messages = new ObservableCollection<string>();
     TimeStamps  = new ObservableCollection<string>();
 }
示例#5
0
文件: User.cs 项目: tamaw/SharpIRC
 public User(Client client, string nick)
 {
     _client = client;
     Nick = nick;
 }