Ejemplo n.º 1
0
        public void AddLaunchHistory(string settingsPath, string shortName, string description, string iconPath)
        {
            FileInfo fi = new FileInfo(settingsPath);

            string revisedIconPath = iconPath
                                     .Replace("{CurrentLocation}", Environment.CurrentDirectory)
                                     .Replace("{SettingsLocation}", fi.DirectoryName);

            globalSettings.AddLaunchHistory(
                settingsPath,
                shortName,
                description,
                revisedIconPath
                );
            globalSettings.Save(globalSettingsPath);
        }