Exemplo n.º 1
0
        private void _esportaGaraToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SaveFileDialog _saveGaraDialog = new SaveFileDialog();

            _saveGaraDialog.Filter = "XML file|*.xml|Text file|*.txt";
            _saveGaraDialog.Title  = "Salva Gara";
            _saveGaraDialog.ShowDialog();

            if (_saveGaraDialog.FileName != "")
            {
                _gara.SaveGara(new GaraPersisiter(_saveGaraDialog.FileName));
            }
        }