コード例 #1
0
ファイル: Main.cs プロジェクト: TeleginS/MonoKit
        private void InitSamples()
        {
            this.controller = new UINavigationController();
            this.monokitSamples = new Samples(this.controller);

            this.window.AddSubview(this.controller.View);

            // setup main index
            this.tableController = new TableViewController(UITableViewStyle.Grouped);
            this.tableController.Title = "MonoKit";
            this.controller.PushViewController(this.tableController, false);
            this.monokitSamples.SetupMainIndexSection(this.tableController.Source);

            this.window.MakeKeyAndVisible();
        }
コード例 #2
0
ファイル: AppDelegate.cs プロジェクト: utahking/MonoKit
        private void InitSamples()
        {
            this.controller = new MyNavigationController();
            this.monokitSamples = new Samples(this.controller);

            // create a new window instance based on the screen size
            this.window = new UIWindow(UIScreen.MainScreen.Bounds);

            // setup main index
            this.tableController = new TableViewController(UITableViewStyle.Grouped);
            this.tableController.Title = "MonoKit";
            this.controller.PushViewController(this.tableController, false);
            this.monokitSamples.SetupMainIndexSection(this.tableController.Source);

            this.window.RootViewController = this.controller;
            this.window.MakeKeyAndVisible();
        }