private void BtnDialogOk_Click(object sender, RoutedEventArgs e)
        {
            _appSettings.Password = ProtectionService.CreateProtectedPassword(txtPassword.Password);
            _appSettings.Username = txtUsername.Text;
            ApplicationService.WriteToAppSettingsFile(_appSettings);

            Close();
        }
        private void BtnDialogOk_Click(object sender, RoutedEventArgs e)
        {
            AppSettings appSettings = new AppSettings();

            appSettings.Password          = ProtectionService.CreateProtectedPassword(txtPassword.Password);
            appSettings.Username          = txtUsername.Text;
            appSettings.DownloadDirectory = FolderPickerDialogBox.DirectoryPath;
            ApplicationService.WriteToAppSettingsFile(appSettings);

            this.Close();
        }