private void LoadMessagesFromFile()
        {
            // Empty the loaded messages and messages errors lists
            LoadedMessages.Clear();
            LoadedMessagesErrors.Clear();
            try
            {
                var(messages, unloadedMessages) = validator.ValidateFile(browseFile());
                // First Load All the errors related to the file
                foreach (var error in unloadedMessages)
                {
                    LoadedMessagesErrors.Add(error);
                }

                foreach (var message in messages)
                {
                    try
                    {
                        LoadedMessages.Add(processor.ProcessMessage(message));
                        // Update lists
                        UpdateLists(message);
                    }
                    catch (Exception ex)
                    {
                        // Display Error For This Message
                        LoadedMessagesErrors.Add(ex.Message.ToString());
                    }
                }
            }
            catch (Exception ex)
            {
                LoadedMessagesErrors.Add(ex.Message);
            }
        }
 private void ClearLoadedMessageClick()
 {
     LoadedMessages.Clear();
     LoadedMessagesErrors.Clear();
 }