Exemplo n.º 1
0
        protected async override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

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

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

            prev.Click += buttonPrev_Click;
            next.Click += buttonNext_Click;

            ShowLoading();

            ViewModel = new DailyGemViewModel();

            await ViewModel.GetData();

            SetCurrentGem();

            HideLoading();
        }
Exemplo n.º 2
0
 public ViewController(IntPtr handle) : base(handle)
 {
     ViewModel = new DailyGemViewModel();
 }