private void cmdSaveDocument_Click(object sender, EventArgs e) { if (txtDocument.Text != string.Empty) { Utility.SaveTextFile(txtDocument.Text, Utility.TxtFilter); } }