public ReportThursday(AppVisibility visibility) { word = new WorkWithWord(); if (File.Exists(cleanThursdayPath)) { word.CreateNewDoc(cleanThursdayPath, visibility); } else { throw new FileLoadException("Шаблон не найден по адресу: " + cleanThursdayPath); } }
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); } }