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 ();
		}
Exemplo n.º 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();
        }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

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

			resigner = new FirstResponderResigner (View, Input);

			SausageButtons.SetUp (ContinueBtn);

			Input.EditingChanged += InputChangedHandler;
			ContinueBtn.TouchUpInside += OnContinueClicked;
			UpdateUserInterface ();
		}
Exemplo n.º 4
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

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

            resigner = new FirstResponderResigner(View, Input);

            SausageButtons.SetUp(ContinueBtn);

            Input.EditingChanged      += InputChangedHandler;
            ContinueBtn.TouchUpInside += OnContinueClicked;
            UpdateUserInterface();
        }
Exemplo n.º 5
0
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			viewModel = App.SignUpViewModel;

			resigner = new FirstResponderResigner (View, Input);

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

			ContinueBtn.TouchUpInside += ContinueHandler;
			SwitchSignUpType.TouchUpInside += SwitchSignUpTypeHandler;
			Input.EditingChanged += InputChangedHandler;
			NickName.EditingChanged += NickNameInputHandler;

			SausageButtons.SetUp (ContinueBtn);
			SausageButtons.SetUp (SwitchSignUpType);
			SwitchSignUpType.Layer.BorderWidth = 1.5f;

			#region Theme switcher

			BoyButton.SetTitle("Red", UIControlState.Normal);
			GirlButton.SetTitle("Blue", UIControlState.Normal);

			BoyButton.TouchUpInside += RedThemeSelected;
			GirlButton.TouchUpInside += BlueThemeSelected;

			ThemeSelectorContainerView.BackgroundColor = Theme.Current.BackgroundColor;

			SausageButtons.SetUp (BoyButton);
			SausageButtons.ApplyTheme(AppDelegate.RedTheme, BoyButton);
			SausageButtons.UpdateBackgoundColor(AppDelegate.RedTheme, BoyButton);

			SausageButtons.SetUp (GirlButton);
			SausageButtons.ApplyTheme(AppDelegate.BlueTheme, GirlButton);
			SausageButtons.UpdateBackgoundColor(AppDelegate.BlueTheme, GirlButton);
			#endregion

			UpdateText ();
		}
Exemplo n.º 6
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            viewModel = App.SignUpViewModel;

            resigner = new FirstResponderResigner(View, Input);

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

            ContinueBtn.TouchUpInside      += ContinueHandler;
            SwitchSignUpType.TouchUpInside += SwitchSignUpTypeHandler;
            Input.EditingChanged           += InputChangedHandler;
            NickName.EditingChanged        += NickNameInputHandler;

            SausageButtons.SetUp(ContinueBtn);
            SausageButtons.SetUp(SwitchSignUpType);
            SwitchSignUpType.Layer.BorderWidth = 1.5f;

            #region Theme switcher

            BoyButton.SetTitle("Red", UIControlState.Normal);
            GirlButton.SetTitle("Blue", UIControlState.Normal);

            BoyButton.TouchUpInside  += RedThemeSelected;
            GirlButton.TouchUpInside += BlueThemeSelected;

            ThemeSelectorContainerView.BackgroundColor = Theme.Current.BackgroundColor;

            SausageButtons.SetUp(BoyButton);
            SausageButtons.ApplyTheme(AppDelegate.RedTheme, BoyButton);
            SausageButtons.UpdateBackgoundColor(AppDelegate.RedTheme, BoyButton);

            SausageButtons.SetUp(GirlButton);
            SausageButtons.ApplyTheme(AppDelegate.BlueTheme, GirlButton);
            SausageButtons.UpdateBackgoundColor(AppDelegate.BlueTheme, GirlButton);
            #endregion

            UpdateText();
        }