public Shortcut () { this.nameProp = new NameProperty (); this.Name = ""; //assign the type of the shortcut if (this is WebPageShortcut) { this.type = ShortcutType.WebPage; } else if (this is MSEdgeShortcut) { this.type = ShortcutType.MSEdge; } else if (this is FileShortcut) { this.type = ShortcutType.File; } else if (this is FolderShortcut) { this.type = ShortcutType.Folder; } else if (this is BatchShortcut) { this.type = ShortcutType.Batch; } }
public Shortcut (RegistryKey regKey):this () { this.regKey = regKey; this.nameProp = new NameProperty (regKey); this.Name = this.GetAppName (regKey.Name); }