public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Set packaged map controller button
            MenuButton = new MenuButton("icons/icon_map.png", new CGRect(0, 0, 30, 30));
            NavigationItem.RightBarButtonItem = MenuButton;

            // Create PackageManager instance for dealing with offline packages
            string folder = Utils.GetDocumentDirectory("regionpackages");

            if (!Directory.Exists(folder))
            {
                Directory.CreateDirectory(folder);
                Console.WriteLine("Directory: Does not exist... Creating");
            }
            else
            {
                Console.WriteLine("Directory: Exists");
            }

            packageManager = new CartoPackageManager("nutiteq.osm", folder);

            ContentView = new PackageManagerListView();
            View        = ContentView;
            ContentView.AddRows(packageList);
        }
コード例 #2
0
        public PackageManagerMenu()
        {
            List = new PackageManagerListView();
            AddSubview(List);

            AddGestureRecognizer(new UITapGestureRecognizer(OnBackgroundClick));
        }
コード例 #3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Create PackageManager instance for dealing with offline packages
            string folder = Utils.GetDocumentDirectory("mappackages");

            if (!Directory.Exists(folder))
            {
                Directory.CreateDirectory(folder);
                Console.WriteLine("Directory: Does not exist... Creating");
            }
            else
            {
                Console.WriteLine("Directory: Exists");
            }

            packageManager = new CartoPackageManager("nutiteq.osm", folder);

            packageManager.PackageManagerListener = PackageUpdateListener;

            packageManager.StartPackageListDownload();

            ContentView = new PackageManagerListView();
            View        = ContentView;
            ContentView.AddRows(packageList);
        }
コード例 #4
0
 public PackageManagerMenu()
 {
     List = new PackageManagerListView();
     AddSubview(List);
 }