/// <summary> /// Command handler for ExportGedcomCommand /// </summary> private void ExportGedcom(object sender, EventArgs e) { CommonDialog dialog = new CommonDialog(); dialog.InitialDirectory = People.ApplicationFolderPath; dialog.Filter.Add(new FilterEntry(Properties.Resources.GedcomFiles, Properties.Resources.GedcomExtension)); dialog.Filter.Add(new FilterEntry(Properties.Resources.AllFiles, Properties.Resources.AllExtension)); dialog.Title = Properties.Resources.Export; dialog.DefaultExtension = Properties.Resources.DefaultGedcomExtension; dialog.ShowSave(); if (!string.IsNullOrEmpty(dialog.FileName)) { GedcomExport ged = new GedcomExport(); ged.Export(family, dialog.FileName); } }
/// <summary> /// Command handler for ExportGedcomCommand /// </summary> private void ExportGedcom(object sender, EventArgs e) { CommonDialog dialog = new CommonDialog(); dialog.InitialDirectory = People.ApplicationFolderPath; dialog.Filter.Add(new FilterEntry(Properties.Resources.GedcomFiles, Properties.Resources.GedcomExtension)); dialog.Filter.Add(new FilterEntry(Properties.Resources.AllFiles, Properties.Resources.AllExtension)); dialog.Title = Properties.Resources.Export; dialog.DefaultExtension = Properties.Resources.DefaultGedcomExtension; dialog.ShowSave(); if (!string.IsNullOrEmpty(dialog.FileName)) { GedcomExport ged = new GedcomExport(); ged.Export(family, dialog.FileName); } }