public Form1() { InitializeComponent(); cvERepo = CvERepo.GetInstance(); numericDoc.Maximum = cvERepo.MaxNumberOfDocs; getText.Enabled = false; label5.Text = ""; }
//public bool IsApiOnline() //{ // try // { // Task.Run(() => getData()); // } // catch (Exception ex) // { // using (var sr = new StreamReader(repoOfflinePath)) // { // instance = (CvERepo)b.Deserialize(sr.BaseStream); // } // } //} public static CvERepo GetInstance() { if (instance == null) { instance = new CvERepo(); } return(instance); }
public Header(int yearsOfExperience) { rng = new Random(); this.yearsOfExperience = yearsOfExperience; currentYear = DateTime.Now.Year; startingYear = currentYear - yearsOfExperience; var titlesInstance = CvERepo.GetInstance(); titles = titlesInstance.GetTitles(); }
public Activities() { _cvERepo = CvERepo.GetInstance(); rng = new Random(); }
public Form2() { InitializeComponent(); action.SelectedIndex = 0; cvERepo = CvERepo.GetInstance(); }