void Match() { LocalDB db = SelectedIDBRelease.LocalDB; switch (db) { case LocalDB.GamesDB: Release.ID_GDB = SelectedIDBRelease?.ID; break; case LocalDB.GiantBomb: Release.ID_GB = SelectedIDBRelease?.ID; break; case LocalDB.OpenVGDB: Release.ID_OVG = SelectedIDBRelease?.ID; break; case LocalDB.LaunchBox: Release.ID_LB = SelectedIDBRelease?.ID; break; default: break; } Reporter.Report(Release.Title + " matched to " + db.Description() + " release " + SelectedIDBRelease?.ID + ", " + SelectedIDBRelease?.Title + "."); OnPropertyChanged("IDBReleases"); OnPropertyChanged("UnmatchedReleases"); }