Beispiel #1
0
        private void BtnSetLocation_Click(object sender, RoutedEventArgs e)
        {
            var dialog = new CommonOpenFileDialog();

            dialog.IsFolderPicker = true;
            CommonFileDialogResult result = dialog.ShowDialog();

            if (result == CommonFileDialogResult.Ok)
            {
                sql.SetBackupLocation(dialog.FileName);
                LblLocation.Content = dialog.FileName;
            }
        }