Beispiel #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);
        }
Beispiel #2
0
    public static void Main()
    {
        Console.WriteLine("Samples for _Change Detection and Notifications_");
        Console.WriteLine();

        SnapshotSamples.Snapshot_change_tracking_1();
        SnapshotSamples.Snapshot_change_tracking_2();

        NotificationEntitiesSamples.Notification_entities_1();
        NotificationWithBaseSamples.Notification_entities_2();

        ChangeTrackingProxiesSamples.Change_tracking_proxies_1();
    }