Exemplo n.º 1
0
        public void onSelect(int index, int position, string title)
        {
            switch (index)
            {
            case 0:
                switch (position)
                {
                case 0:
                    distillate = Constant.Distillate.All;
                    break;

                case 1:
                    distillate = Constant.Distillate.Distillate;
                    break;

                default:
                    break;
                }
                break;

            case 1:
                if (list.Count == 2)
                {
                    sort = Constant.sortTypeList[position];
                }
                else if (list.Count == 3)
                {
                    type = Constant.bookTypeList[position];
                }
                break;

            case 2:
                sort = Constant.sortTypeList[position];
                break;

            default:
                break;
            }
            MessageBus.Default.Post(new SelectionEvent(distillate, type, sort));
        }
Exemplo n.º 2
0
 public SelectionEvent(Constant.Distillate distillate, Constant.BookType type, Constant.SortType sort)
 {
     this.distillate = distillate;
     this.type       = type;
     this.sort       = sort;
 }