Exemplo n.º 1
0
                public PrayerTask(NavbarFragment navFragment) : base(navFragment)
                {
                    // create our fragments (which are basically equivalent to iOS ViewControllers)

                    // Note: Fragment Tags must be the fully qualified name of the class, including its namespaces.
                    // This is how Android will find it when searching.
                    MainPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Prayer.PrayerPrimaryFragment") as PrayerPrimaryFragment;
                    if (MainPage == null)
                    {
                        MainPage = new PrayerPrimaryFragment();
                    }
                    MainPage.ParentTask = this;

                    CreatePage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Prayer.PrayerCreateFragment") as PrayerCreateFragment;
                    if (CreatePage == null)
                    {
                        CreatePage = new PrayerCreateFragment();
                    }
                    CreatePage.ParentTask = this;

                    PostPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Prayer.PrayerPostFragment") as PrayerPostFragment;
                    if (PostPage == null)
                    {
                        PostPage = new PrayerPostFragment();
                    }
                    PostPage.ParentTask = this;
                }
Exemplo n.º 2
0
                public PrayerTask( NavbarFragment navFragment )
                    : base(navFragment)
                {
                    // create our fragments (which are basically equivalent to iOS ViewControllers)
                    MainPage = new PrayerPrimaryFragment( );
                    MainPage.ParentTask = this;

                    CreatePage = new PrayerCreateFragment();
                    CreatePage.ParentTask = this;

                    PostPage = new PrayerPostFragment();
                    PostPage.ParentTask = this;
                }
Exemplo n.º 3
0
                public PrayerTask( NavbarFragment navFragment ) : base( navFragment )
                {
                    // create our fragments (which are basically equivalent to iOS ViewControllers)
                    MainPage = navFragment.FragmentManager.FindFragmentByTag( "Droid.PrayerPrimaryFragment" ) as PrayerPrimaryFragment;
                    if ( MainPage == null )
                    {
                        MainPage = new PrayerPrimaryFragment();
                    }
                    MainPage.ParentTask = this;

                    CreatePage = navFragment.FragmentManager.FindFragmentByTag( "Droid.PrayerCreateFragment" ) as PrayerCreateFragment;
                    if ( CreatePage == null )
                    {
                        CreatePage = new PrayerCreateFragment();
                    }
                    CreatePage.ParentTask = this;

                    PostPage = navFragment.FragmentManager.FindFragmentByTag( "Droid.PrayerPostFragment" ) as PrayerPostFragment;
                    if ( PostPage == null )
                    {
                        PostPage = new PrayerPostFragment();
                    }
                    PostPage.ParentTask = this;
                }