Example #1
0
        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);
        }
Example #2
0
 protected void DoSqliteTest(Element element)
 {
     var admin = new SQLite.MonoTouchAdmin.SQLiteAdmin(SampleDB.Main);
     this.rootController.PushViewController(admin.NewTablesViewController(), true);
 }
Example #3
0
        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);
        }
Example #4
0
        protected void DoSqliteTest(Element element)
        {
            var admin = new SQLite.MonoTouchAdmin.SQLiteAdmin(SampleDB.Main);

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