public ChannelViewController(string channel, Repository repo) { _channel = channel; _repo = repo; Title = channel; TableView.DataSource = new Data(); NavigationItem.RightBarButtonItem = new UIBarButtonItem( UIBarButtonSystemItem.Compose, delegate { var c = new NewMessageViewController(channel, repo); PresentModalViewController(new UINavigationController(c), true); }); Refresh(); }
public ChannelViewController(string channel, Repository repo) { _channel = channel; _repo = repo; Title = channel; TableView.DataSource = new Data (); NavigationItem.RightBarButtonItem = new UIBarButtonItem ( UIBarButtonSystemItem.Compose, delegate { var c = new NewMessageViewController (channel, repo); PresentModalViewController (new UINavigationController (c), true); }); Refresh (); }