コード例 #1
0
        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;
            }
        }
コード例 #2
0
 private void ButtonLogPath_OnClick(object sender, RoutedEventArgs e)
 {
     TextBoxLogPath.Text = FormControlHelper.GetFolderPath();
 }