Esempio n. 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            var source = new CalendarioTableSource(ListaCalendario);

            ListaCalendario.RowHeight = 75;
            var set = this.CreateBindingSet <CalendarioView, CalendarioViewModel>();

            set.Bind(source).To(vm => vm.ListaDias);
            set.Bind(BtRetroceder).To(vm => vm.AnteriorPulsadoAsyncCommand);
            set.Bind(BtSiguiente).To(vm => vm.SiguientePulsadoAsyncCommand);
            set.Apply();

            ListaCalendario.Source = source;
            ListaCalendario.ReloadData();
        }
        void ReleaseDesignerOutlets()
        {
            if (BtRetroceder != null)
            {
                BtRetroceder.Dispose();
                BtRetroceder = null;
            }

            if (BtSiguiente != null)
            {
                BtSiguiente.Dispose();
                BtSiguiente = null;
            }

            if (LabelAcumuladas != null)
            {
                LabelAcumuladas.Dispose();
                LabelAcumuladas = null;
            }

            if (LabelNocturnas != null)
            {
                LabelNocturnas.Dispose();
                LabelNocturnas = null;
            }

            if (ListaCalendario != null)
            {
                ListaCalendario.Dispose();
                ListaCalendario = null;
            }

            if (ViewNavegacion != null)
            {
                ViewNavegacion.Dispose();
                ViewNavegacion = null;
            }
        }