private void btn_Save_Click(object sender, EventArgs e)
        {
            if (txt_Username.Text == "" || txt_CalendarName.Text == "" || txt_Password.Text == "" || txt_URL.Text == "" || cbo_Connector.SelectedItem == null)
            {
                MessageBox.Show("Please fill in all form fields", "Change settings");
            }
            else if (!syncController.CheckConnectivity(cbo_Connector.SelectedItem.ToString(), txt_URL.Text, txt_Username.Text, txt_Password.Text))
            {
                //Checks the connectivity and does not save if connectivity is not given. Error message will be generated by connector.
            }
            else
            {
                if (calendarName != null)
                {
                    DialogResult dialogResult = MessageBox.Show("Do you really want to change these settings? This will automatically reset the synchronization.", "Change settings", MessageBoxButtons.YesNo);
                    if (dialogResult == DialogResult.Yes)
                    {
                        userName     = txt_Username.Text;
                        calendarName = txt_CalendarName.Text;
                        connector    = cbo_Connector.SelectedItem.ToString();
                        URL          = txt_URL.Text;
                        synced       = 0;
                        password     = txt_Password.Text;

                        confManager.SetConfig(userName, password, calendarName, connector, URL, conf.updateInterval, synced, conf.autosync);
                        newSettings      = false;
                        btn_Save.Text    = "In progress ...";
                        btn_Save.Enabled = false;
                        backgroundWorker1.RunWorkerAsync();
                    }
                    else if (dialogResult == DialogResult.No)
                    {
                    }
                }
                else
                {
                    userName     = txt_Username.Text;
                    calendarName = txt_CalendarName.Text;
                    connector    = cbo_Connector.SelectedItem.ToString();
                    URL          = txt_URL.Text;
                    synced       = 0;
                    password     = txt_Password.Text;

                    confManager.SetConfig(userName, password, calendarName, connector, URL, conf.updateInterval, synced, 0);
                    newSettings      = true;
                    btn_Save.Text    = "In progress...";
                    btn_Save.Enabled = false;
                    backgroundWorker1.RunWorkerAsync();
                }
            }
        }