Beispiel #1
0
        public NewcomersByDatePage(DateTime date)
        {
            InitializeComponent();

            _date           = date;
            _newcomerClient = new NewcomerClient();
        }
Beispiel #2
0
        public RecordNewcomerPage()
        {
            InitializeComponent();

            // set drop down values
            cmbMonths.ItemsSource   = Constants.Months;
            cmbDays.ItemsSource     = Enumerable.Range(1, 31).ToList();
            cmbAgeGroup.ItemsSource = Constants.AgeGroups;
            cmbGender.ItemsSource   = Constants.Genders;

            // initialize stuff
            _newcomerClient = new NewcomerClient();
            BindingContext  = new NewcomerBindingModel();
        }
        public NewcomerDetailsPage(NewcomerViewModel newcomer, bool inEditMode = false)
        {
            InitializeComponent();

            // set drop down values
            cmbMonths.ItemsSource   = Constants.Months;
            cmbDays.ItemsSource     = Enumerable.Range(1, 31).ToList();
            cmbAgeGroup.ItemsSource = Constants.AgeGroups;
            cmbGender.ItemsSource   = Constants.Genders;

            // initialize stuff
            _newcomerClient = new NewcomerClient();
            SetNewcomerDisplayValues(newcomer);

            if (inEditMode)
            {
                ShowEditControls();
            }
        }
Beispiel #4
0
 public NewcomersDateSummariesPage()
 {
     InitializeComponent();
     _newcomerClient = new NewcomerClient();
 }