private void KeyLocationTriggerBtn_Click(object sender, RoutedEventArgs e) { _SELECTED_FOLDER_LOCATION = string.Empty; using FolderBrowserDialog _FodlerBrowserDialogue = new(); _FodlerBrowserDialogue.SelectedPath = OpenSSLEnvVarProvider.GetCurrentDirPath(); _ = _FodlerBrowserDialogue.ShowDialog(); _SELECTED_FOLDER_LOCATION = _FodlerBrowserDialogue.SelectedPath; _KeyLocationTF.Text = _SELECTED_FOLDER_LOCATION; }
private void SelectCAKeyTriggerBtn_Click(object sender, RoutedEventArgs e) { _SELECTED_CA_KEY_FOLDER_LOCATION = string.Empty; using OpenFileDialog _CAFileDialogue = new(); _CAFileDialogue.InitialDirectory = OpenSSLEnvVarProvider.GetCurrentDirPath(); _ = _CAFileDialogue.ShowDialog(); string _CAKeyFileName = _CAFileDialogue.FileName; if (!string.IsNullOrEmpty(_CAKeyFileName)) { _SELECTED_CA_KEY_FOLDER_LOCATION = _CAKeyFileName; _SelectCAKeyLocationTF.Text = _SELECTED_CA_KEY_FOLDER_LOCATION; } }