void ItemPress(SampleDataGroup parameter) { switch(parameter.GroupKind) { case GroupKind.MyFeed: case GroupKind.AllMessages: case GroupKind.Popular: case GroupKind.WithMedia: navigationManager.OpenReadThreads(parameter.GroupKind); return; case GroupKind.Logout: InitializeCore(false); return; case GroupKind.Login: navigationManager.OpenLogin(); return; case GroupKind.Post: throw new NotImplementedException(); } Debug.Assert(false, parameter.GroupKind + " is not supported"); }
public SampleDataItem(int mid, string title, string subtitle, string imagePath, string description, string tags, string photoUrl, SampleDataGroup group) : base(title, subtitle, imagePath, imagePath, description) { MId = mid; this.group = group; this.photoUrl = photoUrl; }