Esempio n. 1
0
		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;
			}
		}
Esempio n. 2
0
		public Shortcut (RegistryKey regKey):this () {
			this.regKey = regKey;
			this.nameProp = new NameProperty (regKey);
			this.Name = this.GetAppName (regKey.Name);
		}