Esempio n. 1
0
        public App()
        {
            InitializeComponent();

            var managers = new Managers.Managers();

            Managers.PageManager.Configure(managers);
            MainPage = new NavigationPage(Managers.PageManager.Pages[CommonTypes.PageTypes.Auth]);
        }
Esempio n. 2
0
 public static void Configure(Managers managers)
 {
     Pages = new Dictionary <PageTypes, Xamarin.Forms.ContentPage>()
     {
         [PageTypes.Auth]     = new AuthPage(managers.NetworkManager),
         [PageTypes.Register] = new RegisterPage(managers.NetworkManager),
         [PageTypes.Main]     = new MainPage(managers.NetworkManager, managers.MessagesManager)
     };
 }