Ejemplo n.º 1
0
 public CreatedJobSource(List <int> jobs, SetActiveJob chooseActiveJob, JobViewController managerVC = null)
 {
     jobID            = jobs;
     ion              = AppState.context;
     vc               = managerVC;
     clickedJobActive = chooseActiveJob;
 }
Ejemplo n.º 2
0
        public void refreshJobList(JobViewController manageVC)
        {
            var jobs = ion.database.Query <ION.Core.Database.JobRow>("SELECT DISTINCT JID FROM JobRow ORDER BY JID DESC");

            var jobList = new List <int>();

            foreach (var job in jobs)
            {
                jobList.Add(job.JID);
            }

            jobTable.Source = new CreatedJobSource(jobList, activeJobChosen, this);
            jobTable.ReloadData();
            jobRefresh.EndRefreshing();
        }