public void Installation_Edit(string uuid, string name, MCVersion version, string directory, string iconPath = null, bool isCustom = false)
        {
            if (CurrentProfile == null)
            {
                return;
            }
            if (CurrentInstallations == null)
            {
                return;
            }

            MCProfileExtensions.GetVersionParams(version, out VersioningMode versioningMode, out string version_uuid);
            BLInstallation new_installation = new BLInstallation()
            {
                DisplayName    = name,
                IconPath       = (iconPath == null ? @"Furnace.png" : iconPath),
                IsCustomIcon   = isCustom,
                DirectoryName  = directory,
                VersioningMode = versioningMode,
                VersionUUID    = version_uuid
            };

            if (CurrentInstallations.Any(x => x.InstallationUUID == uuid))
            {
                int index = CurrentInstallations.FindIndex(x => x.InstallationUUID == uuid);
                CurrentInstallations[index] = new_installation;
                Save();
            }
        }
        public void Installation_Create(string name, MCVersion version, string directory, string iconPath = null, bool isCustom = false)
        {
            if (CurrentProfile == null)
            {
                return;
            }
            if (CurrentInstallations == null)
            {
                return;
            }

            MCProfileExtensions.GetVersionParams(version, out VersioningMode versioningMode, out string version_uuid);
            BLInstallation new_installation = new BLInstallation()
            {
                DisplayName    = name,
                IconPath       = (iconPath == null ? @"Furnace.png" : iconPath),
                IsCustomIcon   = isCustom,
                DirectoryName  = directory,
                VersioningMode = versioningMode,
                VersionUUID    = version_uuid
            };

            Installation_Add(new_installation);
        }