Exemple #1
0
        /// <summary>
        /// select add activity, then select true/false
        /// </summary>
        public EditTaskPage SelectAddActivityTrueFalse()
        {
            EditTaskPage editTask = AddActivity.SelectAddActivityTrueFalse();

            ItemList.Add(editTask.Form.ItemTypeForm);
            return(editTask);
        }
Exemple #2
0
        /// <summary>
        /// select add activity, then select multiple choice
        /// </summary>
        public EditTaskPage SelectAddActivityMultipleChoice()
        {
            EditTaskPage editTask = AddActivity.SelectAddActivityMultipleChoice();

            ItemList.Add(editTask.Form.ItemTypeForm);
            return(editTask);
        }
Exemple #3
0
        /// <summary>
        /// select add activity, then select click stick click drop
        /// </summary>
        public EditTaskPage SelectAddActivityClickStickClickDrop()
        {
            EditTaskPage editTask = AddActivity.SelectAddActivityClickStickClickDrop();

            ItemList.Add(editTask.Form.ItemTypeForm);
            return(editTask);
        }
Exemple #4
0
        /// <summary>
        /// select add activity, then select hot spot single selection
        /// </summary>
        public EditTaskPage SelectAddActivityHotSpotSingleSelection()
        {
            EditTaskPage editTask = AddActivity.SelectAddActivityHotSpotSingleSelection();

            ItemList.Add(editTask.Form.ItemTypeForm);
            return(editTask);
        }
Exemple #5
0
        /// <summary>
        /// select add activity, then select inline response
        /// </summary>
        public EditTaskPage SelectAddActivityInlineResponse()
        {
            EditTaskPage editTask = AddActivity.SelectAddActivityInlineResponse();

            ItemList.Add(editTask.Form.ItemTypeForm);
            return(editTask);
        }
 public void Before()
 {
     driver        = new Driver();
     loginPage     = new LoginPage(driver);
     dashboardPage = new DashboardPage(driver);
     setTaskPage   = new SetTaskPage(driver);
     taskPage      = new TaskPage(driver);
     editTaskPage  = new EditTaskPage(driver);
     loginPage.PopulateLogin("tteacher", "spitfire");
     loginPage.ClickLogin();
 }
Exemple #7
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.main);

            Forms.Init(this, bundle);

            MessagingCenter.Instance.Subscribe <string[]>(this, "DisplayAlert", (s) =>
            {
                DisplayAlert(s);
            });

            MessagingCenter.Instance.Subscribe <ProjectOnlineMobile2.Models2.UserModel>(this, "UserInfo", (userInfo) =>
            {
                UserName  = userInfo.UserName;
                UserEmail = userInfo.UserEmail;
            });

            MessagingCenter.Instance.Subscribe <String>(this, "TimesheetPeriod", (tsp) =>
            {
                TimesheetPeriod = tsp;
            });

            MessagingCenter.Instance.Subscribe <String>(this, "TimesheetStatus", (status) =>
            {
                SetTimesheetStatus(status);
            });

            MessagingCenter.Instance.Subscribe <ProjectOnlineMobile2.Models2.LineModel.LineModel>(this, "PushTimesheetWorkPage", (timesheetLine) =>
            {
                PushTimesheetWorkPage(timesheetLine);
            });

            MessagingCenter.Instance.Subscribe <string>(this, "ShowProjectDetails", (projectName) =>
            {
                ShowProjectDetails(projectName);
            });

            MessagingCenter.Instance.Subscribe <string>(this, "ShowEditTaskPage", (s) =>
            {
                PushOtherPages(Resource.Id.menu_tasks, "Edit task", Resource.Menu.edit_task_menu, _editTaskFragment);
            });

            MessagingCenter.Instance.Subscribe <ProjectOnlineMobile2.Models2.LineModel.LineModel>(this, "EditComment", (line) =>
            {
                dialogHelper.DisplayUpdateLineDialog(line.Comment, line.ID.ToString());
            });

            toolbar = FindViewById <Android.Support.V7.Widget.Toolbar>(Resource.Id.toolbar);
            if (toolbar != null)
            {
                SetSupportActionBar(toolbar);
                SupportActionBar.SetDisplayHomeAsUpEnabled(false);
                SupportActionBar.SetHomeButtonEnabled(false);
                toolbar.NavigationClick += (sender, e) => { GoBack(); };
            }

            bottomNavigation = FindViewById <BottomNavigationView>(Resource.Id.bottom_navigation);

            bottomNavigation.NavigationItemSelected += BottomNavigation_NavigationItemSelected;

            _homepageFragment      = new HomePage().CreateSupportFragment(this);
            _timesheetWorkFragment = new TimesheetWorkPage().CreateSupportFragment(this);
            _projectsFragment      = new ProjectPage().CreateSupportFragment(this);
            _tasksFragment         = new TasksPage().CreateSupportFragment(this);
            _timesheetFragment     = new TimesheetPage().CreateSupportFragment(this);

            _addProjectFragment  = new AddProjectPage().CreateSupportFragment(this);
            _addTaskFragment     = new AddTaskPage().CreateSupportFragment(this);
            _editTaskFragment    = new EditTaskPage().CreateSupportFragment(this);
            _projectInfoFragment = new ProjectInfoPage().CreateSupportFragment(this);

            dialogHelper = new DialogHelper(this);

            LoadFragment(Resource.Id.menu_projects);
        }