Ejemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     cvERepo            = CvERepo.GetInstance();
     numericDoc.Maximum = cvERepo.MaxNumberOfDocs;
     getText.Enabled    = false;
     label5.Text        = "";
 }
Ejemplo n.º 2
0
        //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);
        }
Ejemplo n.º 3
0
        public Header(int yearsOfExperience)
        {
            rng = new Random();
            this.yearsOfExperience = yearsOfExperience;
            currentYear            = DateTime.Now.Year;
            startingYear           = currentYear - yearsOfExperience;
            var titlesInstance = CvERepo.GetInstance();

            titles = titlesInstance.GetTitles();
        }
Ejemplo n.º 4
0
 public Activities()
 {
     _cvERepo = CvERepo.GetInstance();
     rng      = new Random();
 }
Ejemplo n.º 5
0
 public Form2()
 {
     InitializeComponent();
     action.SelectedIndex = 0;
     cvERepo = CvERepo.GetInstance();
 }