private void ComboBoxInputSource_OnSelectionChanged(object sender, SelectionChangedEventArgs e) { if (!(sender is ComboBox item)) { return; } if (item.SelectedValue.ToString() == AppSettingsConstants.InputSource.List.ToString() || item.SelectedValue.ToString() == AppSettingsConstants.InputSource.Directory.ToString()) { TextBoxInputPath.Text = FormControlHelper.GetFolderPath(); } // Todo: handle single file else { TextBoxInputPath.Text = string.Empty; } }
private void ButtonLogPath_OnClick(object sender, RoutedEventArgs e) { TextBoxLogPath.Text = FormControlHelper.GetFolderPath(); }