Example #1
0
 public override void OnSelected(DialogViewController sender, MonoTouch.Foundation.NSIndexPath indexPath)
 {
     if (Property.LooksLikeLink) {
         var c = new BrowserController (Property.ValueText);
         sender.NavigationController.PushViewController (c, true);
     } else if (Property.LooksLikeHtml) {
         var c = new BrowserController (Property.Name, Property.ValueText);
         sender.NavigationController.PushViewController (c, true);
     } else if (Entity.IsLocationProperty (Property)) {
         var c = new MapController (Entity);
         sender.NavigationController.PushViewController (c, true);
     } else if (LongText) {
         var html = Html.Encode (Property.ValueText);
         var c = new BrowserController (Property.Name, html);
         sender.NavigationController.PushViewController (c, true);
     }
     base.OnSelected (sender, indexPath);
 }
Example #2
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);
 }
Example #3
0
 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);
 }
Example #4
0
 public override void OnSelected(DialogViewController sender, MonoTouch.Foundation.NSIndexPath indexPath)
 {
     var newData = new DataViewController (new UserQuery {
         FeedId = Feed.Id,
         Name = Link.Href,
         ServiceId = Feed.ServiceId
     }, Feed.GetUrl (Link.Href));
     newData.PagingEnabled = !Link.IsSingleEntity;
     sender.NavigationController.PushViewController (newData, true);
 }
Example #5
0
 public Del(DialogViewController c)
 {
     _c = c;
 }
Example #6
0
 public Data(DialogViewController c)
 {
     _c = c;
 }
Example #7
0
 public virtual void OnDelete(DialogViewController sender, NSIndexPath indexPath)
 {
 }
Example #8
0
 public override void OnSelected(DialogViewController sender, NSIndexPath indexPath)
 {
     sender.TableView.DeselectRow(indexPath, true);
     Action();
     base.OnSelected(sender, indexPath);
 }
Example #9
0
 public override void OnSelected(DialogViewController sender, NSIndexPath indexPath)
 {
     sender.TableView.DeselectRow (indexPath, true);
     Action ();
     base.OnSelected (sender, indexPath);
 }
Example #10
0
 public Del(DialogViewController c)
 {
     _c = c;
 }
Example #11
0
 public Data(DialogViewController c)
 {
     _c = c;
 }
Example #12
0
 public virtual void OnSelected(DialogViewController sender, NSIndexPath indexPath)
 {
     if (Selected != null) {
         Selected (sender);
     }
 }
Example #13
0
 public virtual void OnDelete(DialogViewController sender, NSIndexPath indexPath)
 {
 }