protected override void DialogOkClicked(object o)
        {
            if (settingsService.SkillCastSettings.SkillCastConfigurations.Any(x => x.Name == Name && x != CurrentConfiguration))
            {
                messageBoxService.ShowOK(this, "Profile with name exists", $"There already is a profile named {Name}. Pick a different name.");

                return;
            }

            CurrentConfiguration.Name         = Name;
            CurrentConfiguration.Delays       = new Dictionary <int, int>();
            CurrentConfiguration.SkillIndices = new List <int>();

            var arr = Delays.ToArray();

            for (int i = 0; i < arr.Length; i++)
            {
                if (arr[i] > 0)
                {
                    CurrentConfiguration.Delays[i] = arr[i];
                    CurrentConfiguration.SkillIndices.Add(i);
                }
            }

            DialogResult = true;
        }