public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			#if DEBUG
			debugServer = new Server();
			debugServer.OnRequest += HandleDebugRequest;
			debugServer.Start("conversations");

			debugGesture = new TapGestureAttacher (View, 3, ChangeThemeProps);
//			debugGesture = new TapGestureAttacher (View, 3, Theme.SetNextTheme);
			#endif

			Title = Strings.Chats.Title;
			//remove for now because we do on new friends list
			NavigationItem.BackBarButtonItem = new UIBarButtonItem (Strings.Chats.BackButtonTitle, UIBarButtonItemStyle.Plain, null, null);
			//NavigationItem.RightBarButtonItem.Clicked += OnFindNewPersonClicked;
			NavigationItem.RightBarButtonItem = null;

			viewModel = App.ConversationsViewModel;

			tableUpdater = new CollectionUpdater<Message> (viewModel.Conversations, messageCache);

			dataSource = new ConversationsDataSource (messageCache);
			TableView.Source = dataSource;
			TableView.SeparatorInset = UIEdgeInsets.Zero;
			TableView.RowHeight = 82;
			TableView.TableFooterView = new UIView (CGRect.Empty);

			InitPullToRefresh ();
		}
Example #2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

                        #if DEBUG
            debugServer            = new Server();
            debugServer.OnRequest += HandleDebugRequest;
            debugServer.Start("conversations");

            debugGesture = new TapGestureAttacher(View, 3, ChangeThemeProps);
//			debugGesture = new TapGestureAttacher (View, 3, Theme.SetNextTheme);
                        #endif

            Title = Strings.Chats.Title;
            //remove for now because we do on new friends list
            NavigationItem.BackBarButtonItem = new UIBarButtonItem(Strings.Chats.BackButtonTitle, UIBarButtonItemStyle.Plain, null, null);
            //NavigationItem.RightBarButtonItem.Clicked += OnFindNewPersonClicked;
            NavigationItem.RightBarButtonItem = null;

            viewModel = App.ConversationsViewModel;

            tableUpdater = new CollectionUpdater <Message> (viewModel.Conversations, messageCache);

            dataSource                = new ConversationsDataSource(messageCache);
            TableView.Source          = dataSource;
            TableView.SeparatorInset  = UIEdgeInsets.Zero;
            TableView.RowHeight       = 82;
            TableView.TableFooterView = new UIView(CGRect.Empty);

            InitPullToRefresh();
        }