Esempio n. 1
0
        public CEShortcutItem AddShortcutToFile(string targetFileName, string shortcutFilename, string destinationFolder)
        {
            CEShortcutsSection shortcuts = null;

            if (this.ShortcutSections.Count == 0)
            {
                shortcuts = new CEShortcutsSection("Shortcuts");

                this.ShortcutSections.Add(shortcuts);
            }
            else
            {
                shortcuts = this.ShortcutSections[0];
            }

            return(shortcuts.AddShortcutToFile(shortcutFilename, targetFileName, destinationFolder));
        }
Esempio n. 2
0
        public CEShortcutItem AddShortcutToFile(string targetFileName, string shortcutFilename, string destinationFolder)
        {
            CEShortcutsSection shortcuts = null;

            if (this.ShortcutSections.Count == 0)
            {
                shortcuts = new CEShortcutsSection("Shortcuts");

                this.ShortcutSections.Add(shortcuts);
            }
            else
            {
                shortcuts = this.ShortcutSections[0];
            }

            return shortcuts.AddShortcutToFile(shortcutFilename, targetFileName, destinationFolder);
        }