Пример #1
0
 public void DeleteJob(Guid jobId)
 {
     if (experienceRepos.Get(jobId) != null)
     {
         experienceRepos.Remove(jobId);
         RefreshJobs();
     }
 }
Пример #2
0
        private void EditJob()
        {
            var job = repos.Get(ID);

            job.Employer = Employer;

            var listOfTitles = new List <string>(JobTitles.Split(';'));

            job.Titles.Clear();
            foreach (var item in listOfTitles)
            {
                if (!string.IsNullOrWhiteSpace(item.Trim()))
                {
                    job.Titles.Add(item.Trim());
                }
            }

            job.StartDate = StartDate;
            job.EndDate   = EndDate;

            repos.Update(job.ID, job);

            JobEdited?.Invoke(this, new EventArgs());
        }