private void btn_save_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Save changes?", "Save Settings", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dialogResult == DialogResult.Yes)
            {
                txt_APIURLSource.Enabled      = false;
                txt_hotelCode.Enabled         = false;
                txt_currentToken.Enabled      = false;
                txt_APIURLHostEasyfis.Enabled = false;
                cbx_IsTimeTrigger.Enabled     = false;
                txt_timeTrigger.Enabled       = false;

                btn_save.Enabled = false;
                btn_edit.Enabled = true;

                Entities.Settings newSettings = new Entities.Settings()
                {
                    CurrentToken  = txt_currentToken.Text,
                    APIURLSource  = txt_APIURLSource.Text,
                    HotelCode     = txt_hotelCode.Text,
                    APIURLHost    = txt_APIURLHostEasyfis.Text,
                    IsTimeTrigger = cbx_IsTimeTrigger.Checked,
                    TimeTrigger   = txt_timeTrigger.Text
                };

                String settingsPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"Settings.json");
                String newJson      = new JavaScriptSerializer().Serialize(newSettings);

                File.WriteAllText(settingsPath, newJson);
            }
        }
        public void LoadSettings()
        {
            String settingsPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"Settings.json");

            String json;

            using (StreamReader trmRead = new StreamReader(settingsPath)) { json = trmRead.ReadToEnd(); }

            JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();

            Entities.Settings setting = javaScriptSerializer.Deserialize <Entities.Settings>(json);

            txt_currentToken.Text      = setting.CurrentToken;
            txt_APIURLSource.Text      = setting.APIURLSource;
            txt_hotelCode.Text         = setting.HotelCode;
            txt_APIURLHostEasyfis.Text = setting.APIURLHost;
            cbx_IsTimeTrigger.Checked  = setting.IsTimeTrigger;
            txt_timeTrigger.Text       = setting.TimeTrigger;

            logMessages("Press Start to Integrate... \r\n\n \r\n\n");
        }