public AddAttendancePage()
        {
            InitializeComponent();

            this.volunterRepository   = DependencyService.Get <IVolunterRepository>();
            this.attendanceRepository = DependencyService.Get <IAttendanceRepository>();
        }
예제 #2
0
        public AdminAddRemoveVolunterPage(Volunter volunter = null)
        {
            InitializeComponent();

            this.IsNewVolunter      = volunter == null;
            this.volunterRepository = DependencyService.Get <IVolunterRepository>();

            if (volunter != null)
            {
                this.txtName.Text       = volunter.Name;
                this.txtPassword.Text   = volunter.AccessCode.ToString();
                this.txtUsername.Text   = volunter.Username;
                this.cbActive.IsChecked = volunter.Visible;

                this.txtUsername.IsEnabled = !this.IsNewVolunter;
                this.txtName.IsEnabled     = !this.IsNewVolunter;
            }
            else
            {
                this.cbActive.IsChecked = this.IsNewVolunter;
                //this.btnRemove.IsEnabled = !this.IsNewVolunter;
            }
        }
        public AdminVolunteersPage()
        {
            InitializeComponent();

            this.volunterRepository = DependencyService.Get <IVolunterRepository>();
        }