コード例 #1
0
ファイル: Samples.cs プロジェクト: tilemapjp/MonoKit
        protected void DoDomainTest2(Element element)
        {
            var tb = new TableViewController(UITableViewStyle.Grouped);

            tb.Title = "Snapshot Sourced";

            var section1 = new TableViewSection(tb.Source);

            section1.Header = "commands";
            section1.Add(new StringElement("Test Command 1")
            {
                Command = (x) => SnapshotSamples.DoTest1()
            });
            section1.Add(new StringElement("Test Command 2")
            {
                Command = (x) => SnapshotSamples.DoTest2()
            });

            var adminSection = new TableViewSection(tb.Source);

            adminSection.Header = "Sql";
            adminSection.Add(new StringElement("Browse")
            {
                Command = (x) =>
                {
                    var admin = new SQLite.MonoTouchAdmin.SQLiteAdmin(SnapshotSourcedDB.Main);
                    this.rootController.PushViewController(admin.NewTablesViewController(), true);
                }
            });

            this.rootController.PushViewController(tb, true);
        }
コード例 #2
0
ファイル: Samples.cs プロジェクト: TeleginS/MonoKit
 protected void DoSqliteTest(Element element)
 {
     var admin = new SQLite.MonoTouchAdmin.SQLiteAdmin(SampleDB.Main);
     this.rootController.PushViewController(admin.NewTablesViewController(), true);
 }
コード例 #3
0
ファイル: Samples.cs プロジェクト: TeleginS/MonoKit
        protected void DoDomainTest2(Element element)
        {
            var tb = new TableViewController(UITableViewStyle.Grouped);
            tb.Title = "Snapshot Sourced";

            var section1 = new TableViewSection(tb.Source);

            section1.Header = "commands";
            section1.Add(new StringElement("Test Command 1"){ Command = (x) => SnapshotSamples.DoTest1()});
            section1.Add(new StringElement("Test Command 2"){ Command = (x) => SnapshotSamples.DoTest2()});

            var adminSection = new TableViewSection(tb.Source);

            adminSection.Header = "Sql";
            adminSection.Add(new StringElement("Browse"){ Command = (x) =>
                {
                var admin = new SQLite.MonoTouchAdmin.SQLiteAdmin(SnapshotSourcedDB.Main);
                this.rootController.PushViewController(admin.NewTablesViewController(), true);
                }
            });

            this.rootController.PushViewController(tb, true);
        }
コード例 #4
0
ファイル: Samples.cs プロジェクト: tilemapjp/MonoKit
        protected void DoSqliteTest(Element element)
        {
            var admin = new SQLite.MonoTouchAdmin.SQLiteAdmin(SampleDB.Main);

            this.rootController.PushViewController(admin.NewTablesViewController(), true);
        }