private void button1_Click(object sender, EventArgs e) { string mail = "*****@*****.**"; if (textBoxEmail != null) { mail = textBoxEmail.Text; } string fileName = "Заявки.docx"; report.SaveDetailRequestsToWordlFile(fileName, mail); }