示例#1
0
        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();
        }
示例#2
0
        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 ();
        }