예제 #1
0
        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");
        }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }