/// <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); }
private void Client_ServerTimeReceived(object sender, IrcServerTimeEventArgs e) { connection.AddHistory(HtmlWriter.Write(string.Format(MainPage.GetInfoString("SrvTime"), e.ServerName, e.DateTime))); }