public static void addProfile(string profileName)
        {
            if (!profileExists(profileName))
            {

                configData data = new configData();
                data.configDataInit();
                data.profileName = profileName.ToLower();
                profiles.Add(data);

            }
            else
            {
                MessageBox.Show("Cannot create profile as name already exists.", "Error");
            }
        }
 public static void addProfile()
 {
     configData data = new configData();
     data.configDataInit();
     profiles.Add(data);
 }