static void Client_JoinedChannel(object sender, ServerChatEventArgs args) { PrintTidTs(DateTime.Now); console.OutputForegroundColor = ConsoleColor.Gray; console.Write("Joining channel "); console.OutputForegroundColor = ConsoleColor.White; console.WriteLine(args.Text); }
static void client_Broadcast(object sender, ServerChatEventArgs e) { PrintTidTs(DateTime.Now); console.OutputForegroundColor = ConsoleColor.Yellow; console.WriteLine("Broadcast: {0}", e.Text); }
static void client_ServerError(object sender, ServerChatEventArgs e) { PrintTidTs(DateTime.Now); console.OutputForegroundColor = ConsoleColor.Red; console.WriteLine(e.Text); }
static void Channel_NewChannelJoined(object sender, ServerChatEventArgs e) { Client_JoinedChannel(sender, e); }