void test() { List <Communication> list_com = new List <Communication>(); Communication_Trame test_trame = new Communication_Trame(); Structures_Echange.Logger_Debug Logger = new Structures_Echange.Logger_Debug(); for (int i = 0; i < 30; i++) { list_com = Logger.Send_Logger("test " + i.ToString(), Logger_Debug_Color.Color_Black); Lecteurs_Messages.Received_Messages.AddRange(list_com); } for (int i = 0; i < 30; i++) { list_com = Logger.Send_Logger("test " + i.ToString(), Logger_Debug_Color.Color_Blue); Lecteurs_Messages.Received_Messages.AddRange(list_com); } for (int i = 0; i < 30; i++) { list_com = Logger.Send_Logger("test " + i.ToString(), Logger_Debug_Color.Color_Red); Lecteurs_Messages.Received_Messages.AddRange(list_com); } }
//Envoi d'un message de Log (str), de la couleur (color) public List <Communication> Send_Logger(string str, Structures_Echange.Logger_Debug.Logger_Debug_Color color) { //Transforme le message de log, en une liste de messages de communication Structures_Echange.Logger_Debug logger = new Structures_Echange.Logger_Debug(); return(logger.Send_Logger(str, color)); }