Ejemplo n.º 1
0
        public RegisterCounselPage()
        {
            InitializeComponent();

            subjectsService          = App.LogicContext.SubjectsService;
            counselService           = App.LogicContext.CounselService;
            exceptionHandler         = App.LogicContext.ExceptionHandler;
            alertDisplayer           = App.LogicContext.AlertDisplayer;
            registerCounselViewModel = new RegisterCounselPageViewModel {
                Subjects = new SubjectDto[] { }
            };

            BindingContext = registerCounselViewModel;
        }
        public CounselSignupPage(CounselDto counsel)
        {
            InitializeComponent();

            counselService         = App.LogicContext.CounselService;
            alertDisplayer         = App.LogicContext.AlertDisplayer;
            mapInitializer         = App.LogicContext.MapInitializer;
            exceptionHandler       = App.LogicContext.ExceptionHandler;
            counselSignupViewModel = new CounselSignupPageViewModel {
                Counsel = counsel
            };

            BindingContext = counselSignupViewModel;
            Title          = counsel.SubjectName;
        }
Ejemplo n.º 3
0
        public AvailableCounselsPage(SubjectDto subject)
        {
            InitializeComponent();

            counselsService            = App.LogicContext.CounselService;
            exceptionHandler           = App.LogicContext.ExceptionHandler;
            availableCounselsViewModel = new AvailableCounselsPageViewModel
            {
                Subject  = subject,
                Counsels = new CounselDto[] {}
            };

            BindingContext = availableCounselsViewModel;
            Title          = subject.ToString();
        }
        public CounselRequestsListPage(SubjectDto subject, bool showAcceptedRequests)
        {
            InitializeComponent();

            this.subject = subject;
            this.showAcceptedRequests   = showAcceptedRequests;
            counselsService             = App.LogicContext.CounselService;
            exceptionHandler            = App.LogicContext.ExceptionHandler;
            confirmCounselListViewModel = new ConfirmCounselListPageViewModel
            {
                CounselRequests = new CounselRequestDto[] { }
            };

            Title          = subject != null ? "Solicitudes para " + subject.Description : "Solicitudes realizadas";
            BindingContext = confirmCounselListViewModel;
        }
Ejemplo n.º 5
0
        public CounselRequestDetailPage(CounselRequestDto counselRequest, bool isDisplayOnly = false)
        {
            InitializeComponent();

            counselService      = App.LogicContext.CounselService;
            mapInitializer      = App.LogicContext.MapInitializer;
            alertDisplayer      = App.LogicContext.AlertDisplayer;
            exceptionHandler    = App.LogicContext.ExceptionHandler;
            this.counselRequest = counselRequest;

            counselRequestDetailViewModel = new CounselRequestDetailPageViewModel
            {
                SubjectName          = counselRequest.SubjectName,
                StudentName          = counselRequest.StudentName,
                TeacherName          = counselRequest.TeacherName,
                CounselDateTime      = counselRequest.CounselDateTime,
                IsConfirmationDetail = !isDisplayOnly
            };

            Title          = counselRequest.ToString();
            BindingContext = counselRequestDetailViewModel;
        }