private WordDoc openDocumentWord(string name) { TemplateList templateList = TemplateList.getInstance(); Template template = templateList.getItem(name); return(new WordDoc(template.File)); }
private ExcelDoc openDocumentExcel(string name) { TemplateList templateList = TemplateList.getInstance(); Template template = templateList.getItem(name); return(new ExcelDoc(template.File)); }
private void _dgvTemplate_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { openAddEdit(_templateList.getItem(_dgvMain.GetID())); }