//removing connections from connection list and save list to file
 private void ButtonRemove_Click(object sender, EventArgs e)
 {
     if (comboBoxConnectionName.SelectedIndex > -1)
     {
         Connection   cn  = cl.connectionList.Find(c => c.name == comboBoxConnectionName.SelectedItem.ToString());
         DialogResult res = MessageBox.Show("Are you sure you want to Delete connection: " + cn.name, "Confirmation", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
         if (res == DialogResult.OK)
         {
             cl.connectionList.Remove(cn);
             cl.saveConnections();
             updateConnectionList();
             clearFields();
         }
     }
     else
     {
         MessageBox.Show("You have to choose connection.");
     }
 }