public NotesTask(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.Notes.NotesPrimaryFragment") as NotesPrimaryFragment; if (MainPage == null) { MainPage = new NotesPrimaryFragment(); } MainPage.ParentTask = this; DetailsPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Notes.NotesDetailsFragment") as NotesDetailsFragment; if (DetailsPage == null) { DetailsPage = new NotesDetailsFragment(); } DetailsPage.ParentTask = this; NotesPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Notes.NotesFragment") as NotesFragment; if (NotesPage == null) { NotesPage = new NotesFragment( ); } NotesPage.ParentTask = this; WatchPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Notes.NotesWatchFragment") as NotesWatchFragment; if (WatchPage == null) { WatchPage = new NotesWatchFragment(); } WatchPage.ParentTask = this; ListenPage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Notes.NotesListenFragment") as NotesListenFragment; if (ListenPage == null) { ListenPage = new NotesListenFragment(); } ListenPage.ParentTask = this; DiscGuidePage = navFragment.FragmentManager.FindFragmentByTag("Droid.Tasks.Notes.NotesDiscGuideFragment") as NotesDiscGuideFragment; if (DiscGuidePage == null) { DiscGuidePage = new NotesDiscGuideFragment(); } DiscGuidePage.ParentTask = this; WebViewPage = new TaskWebFragment( ); WebViewPage.ParentTask = this; }
public NotesTask( NavbarFragment navFragment ) : base( navFragment ) { // create our fragments (which are basically equivalent to iOS ViewControllers) MainPage = navFragment.FragmentManager.FindFragmentByTag( "Droid.NotesPrimaryFragment" ) as NotesPrimaryFragment; if ( MainPage == null ) { MainPage = new NotesPrimaryFragment(); } MainPage.ParentTask = this; DetailsPage = navFragment.FragmentManager.FindFragmentByTag( "Droid.NotesDetailsFragment" ) as NotesDetailsFragment; if ( DetailsPage == null ) { DetailsPage = new NotesDetailsFragment(); } DetailsPage.ParentTask = this; NotesPage = navFragment.FragmentManager.FindFragmentByTag( "Droid.NotesFragment" ) as NotesFragment; if ( NotesPage == null ) { NotesPage = new NotesFragment( ); } NotesPage.ParentTask = this; WatchPage = navFragment.FragmentManager.FindFragmentByTag( "Droid.NotesWatchFragment" ) as NotesWatchFragment; if ( WatchPage == null ) { WatchPage = new NotesWatchFragment(); } WatchPage.ParentTask = this; ListenPage = navFragment.FragmentManager.FindFragmentByTag( "Droid.NotesListenFragment" ) as NotesListenFragment; if ( ListenPage == null ) { ListenPage = new NotesListenFragment(); } ListenPage.ParentTask = this; WebViewPage = new TaskWebFragment( ); WebViewPage.ParentTask = this; }
public NotesTask( NavbarFragment navFragment ) : base(navFragment) { // create our fragments (which are basically equivalent to iOS ViewControllers) MainPage = new NotesPrimaryFragment( ); MainPage.ParentTask = this; DetailsPage = new NotesDetailsFragment( ); DetailsPage.ParentTask = this; NotesPage = new NotesFragment( ); NotesPage.ParentTask = this; WatchPage = new NotesWatchFragment( ); WatchPage.ParentTask = this; ListenPage = new NotesListenFragment( ); ListenPage.ParentTask = this; WebViewPage = new TaskWebFragment( ); WebViewPage.ParentTask = this; }
public NotesArrayAdapter( NotesPrimaryFragment parentFragment ) { ParentFragment = parentFragment; }