Ejemplo n.º 1
0
        void InitUI()
        {
            CreateLoginForm();

            //Submit Button
            SubmitButton = CreateButton(ResourceManager.GetString("login"),
                                        AppStyles.Red,
                                        loginForm.Frame.Bottom + 20);

            WPBButton CancelButton = CreateButton(ResourceManager.GetString("cancel"), AppStyles.DarkGray, SubmitButton.Frame.Bottom + 20);

            CancelButton.TouchUpInside += (object sender, EventArgs e) => {
                DismissViewController(true, null);
                LoginCancelled.Invoke();
            };

            //Register Button
            RegisterButton = new UIButton();
            var buttonY = WhitePaperBible.iOS.UI.Environment.DeviceScreenHeight - 60;

            RegisterButton.Frame = new RectangleF(10, buttonY, 280, 43);
            RegisterButton.CenterHorizontally();
            RegisterButton.SetTitle(ResourceManager.GetString("register"), UIControlState.Normal);
            RegisterButton.BackgroundColor = UIColor.Clear;
            RegisterButton.SetTitleColor(UIColor.White, UIControlState.Normal);
            RegisterButton.Font = UIFont.FromName("Helvetica", 12);
            RegisterButton.SetTitleColor(AppStyles.DarkGray, UIControlState.Highlighted);
            View.AddSubview(RegisterButton);
        }
Ejemplo n.º 2
0
        WPBButton CreateButton(string title, UIColor color, float yPos)
        {
            WPBButton button = new WPBButton(title, color, yPos);

            button.CenterHorizontally();
            View.AddSubview(button);
            return(button);
        }
 void CreateLoginRegisterButton()
 {
     WPBButton loginRegisterButton = new WPBButton (ResourceManager.GetString ("loginRegister"),
                                         AppStyles.Red,
                                         130);
     loginRegisterButton.TouchUpInside += (object sender, EventArgs e) => {
         LoginRegister.Invoke ();
     };
     AddSubview (loginRegisterButton);
 }
Ejemplo n.º 4
0
        void CreateLoginRegisterButton()
        {
            WPBButton loginRegisterButton = new WPBButton(ResourceManager.GetString("loginRegister"),
                                                          AppStyles.Red,
                                                          130);

            loginRegisterButton.TouchUpInside += (object sender, EventArgs e) => {
                LoginRegister.Invoke();
            };
            AddSubview(loginRegisterButton);
        }
Ejemplo n.º 5
0
        void InitUI()
        {
            CreateLoginForm ();

            //Submit Button
            SubmitButton = CreateButton (ResourceManager.GetString ("login"),
                AppStyles.Red,
                loginForm.Frame.Bottom + 20);

            WPBButton CancelButton = CreateButton (ResourceManager.GetString ("cancel"), AppStyles.DarkGray, SubmitButton.Frame.Bottom + 20);
            CancelButton.TouchUpInside += (object sender, EventArgs e) => {
                DismissViewController (true, null);
                LoginCancelled.Invoke ();
            };

            //Register Button
            RegisterButton = new UIButton ();
            var buttonY = WhitePaperBible.iOS.UI.Environment.DeviceScreenHeight - 60;
            RegisterButton.Frame = new RectangleF (10, buttonY, 280, 43);
            RegisterButton.CenterHorizontally ();
            RegisterButton.SetTitle (ResourceManager.GetString ("register"), UIControlState.Normal);
            RegisterButton.BackgroundColor = UIColor.Clear;
            RegisterButton.SetTitleColor (UIColor.White, UIControlState.Normal);
            RegisterButton.Font = UIFont.FromName ("Helvetica", 12);
            RegisterButton.SetTitleColor (AppStyles.DarkGray, UIControlState.Highlighted);
            View.AddSubview (RegisterButton);
        }
Ejemplo n.º 6
0
 WPBButton CreateButton(string title, UIColor color, float yPos)
 {
     WPBButton button = new WPBButton (title, color, yPos);
     button.CenterHorizontally ();
     View.AddSubview (button);
     return button;
 }