Example #1
0
 public ReportThursday(AppVisibility visibility)
 {
     word = new WorkWithWord();
     if (File.Exists(cleanThursdayPath))
     {
         word.CreateNewDoc(cleanThursdayPath, visibility);
     }
     else
     {
         throw new FileLoadException("Шаблон не найден по адресу: " + cleanThursdayPath);
     }
 }
Example #2
0
        public GraphicGenerator(AppVisibility visibility, DateTime date)
        {
            curentDate = date;
            String path = SelectTemplateMonth();

            word = new WorkWithWord();
            if (File.Exists(path))
            {
                word.CreateNewDoc(path, visibility);
            }
            else
            {
                throw new FileLoadException("Шаблон не найден по адресу: " + path);
            }
        }