public void DeleteJob(Guid jobId) { if (experienceRepos.Get(jobId) != null) { experienceRepos.Remove(jobId); RefreshJobs(); } }
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()); }