private void TsmiSave_Click(object sender, EventArgs e) { SaveFileDialog dlg = new SaveFileDialog(); dlg.Filter = "*.xml|*.xml"; if (dlg.ShowDialog() == DialogResult.OK) { database.SaveToXml(dlg.FileName); } }