示例#1
0
        /// <summary>
        /// Set the selected Task in the model and load the Task Detail View
        /// </summary>
        /// <param name="task">the selected task</param>
        private void OutputItemSelected(Model.Entity.Task task)
        {
            this.appcore.SetCurrentTask(task);

            if (task is Model.Entity.MaintenanceTask)
            {
                this.page.Navigation.PushAsync(new MaintenanceDetailPage());
            }
            else
            {
                this.page.Navigation.PushAsync(new TaskPage());
            }
        }
示例#2
0
        /// <summary>
        /// Creates a new MaintenanceFeedbackViewModel
        /// </summary>
        public MaintenanceFeedbackViewModelcs()
        {
            PhotoCommand = new Command(async() => await this.HandlePhotoCommandAsync());
            StoreCommamd = new Command(() => this.HandleStoreCommand());
            task         = AppCore.Instance.CurrentTask;

            if (task != null)
            {
                if (task is MaintenanceTask)
                {
                    this.SetListView(((MaintenanceTask)task).Subtasks);
                }
            }
        }