Provides data for the IrcClient.ServerTimeReceived event.
Inheritance: System.EventArgs
Example #1
0
 /// <summary>
 /// Raises the <see cref="ServerTimeReceived"/> event.
 /// </summary>
 /// <param name="e">The <see cref="IrcServerTimeEventArgs"/> instance containing the event data.</param>
 protected virtual void OnServerTimeReceived(IrcServerTimeEventArgs e)
 {
     var handler = this.ServerTimeReceived;
     if (handler != null)
         handler(this, e);
 }
Example #2
0
 private void Client_ServerTimeReceived(object sender, IrcServerTimeEventArgs e)
 {
     connection.AddHistory(HtmlWriter.Write(string.Format(MainPage.GetInfoString("SrvTime"),
         e.ServerName, e.DateTime)));
 }