예제 #1
0
        public FeedsController(UserService service, UserFeed feed) : base(UITableViewStyle.Grouped)
        {
            try {
                Service = service;

                LoadFeeds();
            } catch (Exception error) {
                Log.Error(error);
            }
        }
        public void PushDataViewController(UserFeed feed)
        {
            var c = new DataViewController(new UserQuery()
            {
                FeedId    = feed.Id,
                Name      = feed.Name,
                ServiceId = Service.Id
            }, feed.Url);

            NavigationController.PushViewController(c, true);
        }
            public override void OnSelected(DialogViewController sender, NSIndexPath indexPath)
            {
                UserFeed feed = null;

                using (var repo = new Repo()) {
                    feed = repo.GetFeed(Query.FeedId);
                }
                var c = new DataViewController(Query, feed.Url);

                sender.NavigationController.PushViewController(c, true);
            }
예제 #4
0
 public override void OnSelected(DialogViewController sender, MonoTouch.Foundation.NSIndexPath indexPath)
 {
     var c = new FeedsController (Service, Value);
     c.FeedSelected += f =>
     {
         Value = f;
         c.NavigationController.PopViewControllerAnimated (true);
         sender.TableView.ReloadData ();
     };
     sender.NavigationController.PushViewController (c, true);
 }
예제 #5
0
 public QueryFeedElement(UserService service, UserFeed feed)
     : base("Feed")
 {
     Service = service;
     Value = feed;
     CellStyle = UITableViewCellStyle.Value1;
 }
예제 #6
0
 public FeedElement(UserService service, UserFeed feed, UITableViewCellAccessory acc) : base(feed.Name)
 {
     Accessory = acc;
     Service   = service;
     Feed      = feed;
 }
예제 #7
0
 public LinkElement(UserFeed feed, Entity.Link link)
     : base(link.Name)
 {
     Feed = feed;
     Link = link;
 }
예제 #8
0
 public void PushDataViewController(UserFeed feed)
 {
     var c = new DataViewController (new UserQuery() {
         FeedId = feed.Id,
         Name = feed.Name,
         ServiceId = Service.Id
     }, feed.Url);
     NavigationController.PushViewController (c, true);
 }
 public QueryFeedElement(UserService service, UserFeed feed) : base("Feed")
 {
     Service   = service;
     Value     = feed;
     CellStyle = UITableViewCellStyle.Value1;
 }
 public LinkElement(UserFeed feed, Entity.Link link) : base(link.Name)
 {
     Feed = feed;
     Link = link;
 }