private void btn_save_Click(object sender, EventArgs e) { if (fileName == null) { MessageBox.Show("Filename not specified. Please create a new file or load an event file"); } else { EventWriter.NewDocument(fileName); } }