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

            viewModel = App.SignUpViewModel;

            resigner = new FirstResponderResigner(View, Input);

            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
            ThemeSelectorContainerView.BackgroundColor = Theme.Current.BackgroundColor;
            #endregion

            UpdateText();
        }