void OnClickGeneric(object Sender) { AlbumForm AlbumForm = new AlbumForm((int)(Sender as SensePanelItem).Tag); AlbumForm.Show(); }
void OnClickGeneric(object Sender) { switch ((Sender as SensePanelItem).PrimaryText) { case "By Genre": { } break; case "By Artist": { ArtistForm ArtistForm = new ArtistForm(); ArtistForm.Show(); } break; case "By Album": { AlbumForm AlbumForm = new AlbumForm(); AlbumForm.Show(); } break; } }