Exemple #1
0
 // Constructor
 public InputMessagesPage()
 {
     InitializeComponent();
     validation.RetrieveStoredList();
     processing.GetTextWords();
     processing.GetHashTags();
     processing.GetMentions();
     processing.GetSIR();
 }
        /// <summary>
        /// This method exports the Json file to the users desktop
        /// </summary>
        private void ExportJsonFile()
        {
            try
            {
                menuValidation.RetrieveStoredList();

                // Sets a string as the path for where to store the JSON file.
                string path = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory) + "/EustonLeisureMessages.json";

                jsonClass.Serialize(menuValidation.listOfMessages, path);

                MessageBox.Show("JSON Exported");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }