Exemplo n.º 1
0
        public LoginModalPage(ILoginManager ilm)
        {
            login = new LoginPage (ilm);
            create = new CreateAccountPage(ilm);
            this.Children.Add(login);
            this.Children.Add(create);

            MessagingCenter.Subscribe<ContentPage>(this, "Login", (sender) => {
                this.SelectedItem = login;
            });
            MessagingCenter.Subscribe<ContentPage>(this, "Login", (sender) => {
                this.SelectedItem = create;
            });
        }
Exemplo n.º 2
0
        public LoginModalPage(ILoginManager ilm)
        {
            login  = new LoginPage(ilm);
            create = new CreateAccountPage(ilm);
            this.Children.Add(login);
            this.Children.Add(create);

            MessagingCenter.Subscribe <ContentPage>(this, "Login", (sender) => {
                this.SelectedItem = login;
            });
            MessagingCenter.Subscribe <ContentPage>(this, "Login", (sender) => {
                this.SelectedItem = create;
            });
        }