예제 #1
0
        private void ReadDocketYear()
        {
            string docketYearFilePath = Path.Combine(Configuration.GetSetting(Configuration.INPUT_DIRECTORY), Configuration.GetSetting(Configuration.DOCKET_YEAR_FILE));

            if (!File.Exists(docketYearFilePath))
            {
                Warning?.Invoke("Docket year file " + docketYearFilePath + " does not exist, will be created empty");
                File.Create(docketYearFilePath).Close();
            }
            string s = File.ReadAllText(docketYearFilePath);

            if (string.IsNullOrWhiteSpace(s))
            {
                DocketYearRead?.Invoke();
                return;
            }
            DocketYear = int.Parse(s);
            DocketYearRead?.Invoke();
        }
예제 #2
0
 private void OnDocketYearRead()
 {
     DocketYearRead?.Invoke();
 }