Beispiel #1
0
        public TabController getTabBar()
        {
            // tab 1: Add Item to Wardrobe
            var vcAddItem = new AddItemViewController();
            NavigationBarController nbcAddItem = new NavigationBarController();
            UINavigationController  ncAddItem  = nbcAddItem.GetNavigationController(vcAddItem);

            vcAddItem.Title = "Add Wardrobe Item";
            vcAddItem.View.BackgroundColor = UIColor.Green;

            // tab 2: View Reports
            var vcMyReports = new MyReportsViewController();
            NavigationBarController nbcMyReports = new NavigationBarController();
            UINavigationController  ncMyReports  = nbcMyReports.GetNavigationController(vcMyReports);

            vcMyReports.Title = "My Reports";
            vcMyReports.View.BackgroundColor = UIColor.Orange;

            TabController tabController = new TabController();

            tabController.AddChildViewController(ncAddItem);
            tabController.AddChildViewController(ncMyReports);

            return(tabController);
        }
Beispiel #2
0
        public ReportSource(MyReportsViewController rptcontroller, List <TBL_REPORTS> reportsList)
        {
            controller = rptcontroller;
            //this.controller = controller;

            databaseHelper     = new SqliteCipherHelper();
            settingsController = new SettingsController();
            messageManager     = new MessageManager();

            vcMyWardrobe = new MyWardrobeViewController();

            // Here is the data we need to display
            _reportsList = reportsList;
        }