示例#1
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            repository = new TodoItemRepository();

            // Get our button from the layout resource,
            // and attach an event to it
            Button createItemButton = FindViewById <Button>(Resource.Id.createItemButton);

            createItemButton.Click += CreateItemButton_Click;
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            repository = new TodoItemRepository();

            // Get our button from the layout resource,
            // and attach an event to it
            Button createItemButton = FindViewById<Button>(Resource.Id.createItemButton);
            
            createItemButton.Click += CreateItemButton_Click;
        }