示例#1
0
文件: Form1.cs 项目: ManosPrk/CvEv6
 public Form1()
 {
     InitializeComponent();
     cvERepo            = CvERepo.GetInstance();
     numericDoc.Maximum = cvERepo.MaxNumberOfDocs;
     getText.Enabled    = false;
     label5.Text        = "";
 }
示例#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);
        }
示例#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();
        }
示例#4
0
 public Activities()
 {
     _cvERepo = CvERepo.GetInstance();
     rng      = new Random();
 }
示例#5
0
文件: Form2.cs 项目: ManosPrk/CvEv6
 public Form2()
 {
     InitializeComponent();
     action.SelectedIndex = 0;
     cvERepo = CvERepo.GetInstance();
 }