Exemplo n.º 1
0
        // zdroj: https://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog(v=vs.110).aspx
        private void ExportDbtoXml(object sender, RoutedEventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();

            fbd.Description = "Please, choose directory to save a XML file.";

            if (fbd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                string selectedPath = fbd.SelectedPath;
                _dbContext.SaveToXml($"{selectedPath}//Hockey-export.xml");
            }
        }