/**
  * This method is used to start the client in order to send a request to the server to send or get messages from the database
  * @param userName - username of current user
  * @param userPassword - password of current user
  * @param eventName - eventName, that will be equal to Send_Message or Get_Messages, for the server to recognise the response
  * @param userID - ID of the user
  * @param chatForm - the current Chat form, where the function is called from, to call methods on it later
  * @param userMessage - the message, that the user wants to send to the chat
  */
 public void StartClientWithChatForm(String userName, String userPassword, String eventName, string userID, Messager chatForm, String userMessage)
 {
     currentChatForm = chatForm;
     extraData       = userMessage;
     StartClient(userName, userPassword, eventName, userID);
 }
 /**
  * This method is used to start the client in order to send a request to the server to delete a message from the database
  * @param userName - username of current user
  * @param messageTimeStamp - the time of the message being sent
  * @param eventName - eventName, that will be equal to Delete_Message, for the server to recognise the response
  * @param chatForm - the current Chat form, where the function is called from, to call methods on it later
  */
 public void StartClientWithChatFormDeleteMessage(String userName, String messageTimeStamp, String eventName, Messager chatForm)
 {
     currentChatForm = chatForm;
     extraData       = messageTimeStamp;
     StartClient(userName, "null", eventName, "null");
 }
 /**
  * This method is used to start the client in order to disconnect from the server
  * @param eventName - eventName, that will be equal to Disconnect, for the server to recognise the response
  * @param chatForm - the current Chat form, where the function is called from, to call methods on it later
  */
 public void StartClientWithChatFormDisconnect(String eventName, Messager chatForm)
 {
     StartClient("null", "null", eventName, "null");
 }
 public ChatListItemAdmin(Messager currentChatForm)
 {
     this.currentChatForm = currentChatForm;
     InitializeComponent();
 }