Esempio n. 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);
            }
Esempio n. 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);
 }
Esempio n. 5
0
 public QueryFeedElement(UserService service, UserFeed feed)
     : base("Feed")
 {
     Service = service;
     Value = feed;
     CellStyle = UITableViewCellStyle.Value1;
 }
Esempio n. 6
0
 public FeedElement(UserService service, UserFeed feed, UITableViewCellAccessory acc) : base(feed.Name)
 {
     Accessory = acc;
     Service   = service;
     Feed      = feed;
 }
Esempio n. 7
0
 public LinkElement(UserFeed feed, Entity.Link link)
     : base(link.Name)
 {
     Feed = feed;
     Link = link;
 }
Esempio n. 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;
 }