Exemplo n.º 1
0
        private void buttonAddProfile_Click(object sender, EventArgs e)
        {
            GroupProfile newProfile = (GroupProfile)Profiles[0].Clone();

            newProfile.Name = $"New Profile {Profiles.Count}";
            Profiles.Add(newProfile);
            AddProfilesToCombo(Profiles.Count - 1);
        }
Exemplo n.º 2
0
        private void buttonCopyProfile_Click(object sender, EventArgs e)
        {
            SaveProfile(comboBoxProfiles.SelectedIndex);
            GroupProfile newProfile = (GroupProfile)Profiles[comboBoxProfiles.SelectedIndex].Clone();

            newProfile.Name = $"{comboBoxProfiles.SelectedItem.ToString()} Copy";
            Profiles.Add(newProfile);
            AddProfilesToCombo(Profiles.Count - 1);
        }