Пример #1
0
 /// <summary>
 /// Allows the user to change the order in which the selected files will be processed
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void miSortOrder_Click(object sender, RoutedEventArgs e)
 {
     if (fileBrowser != null && fileBrowser.TextFileNames.Count > 1)
     {
         FileOrderDialog fod = new FileOrderDialog();
         fod.Populate(fileBrowser.TextFileNames);
         bool?result = fod.ShowDialog();
         if (result != null && result.Value)
         {
             fileBrowser.TextFileNames = fod.GetFileList();
             ReadSelectedFiles();
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Allows the user to change the order in which the selected files will be processed
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
 private void miSortOrder_Click(object sender, RoutedEventArgs e)
 {
     if (fileBrowser != null && fileBrowser.TextFileNames.Count > 1)
     {
         FileOrderDialog fod = new FileOrderDialog();
         fod.Populate(fileBrowser.TextFileNames);
         bool? result = fod.ShowDialog();
         if (result != null && result.Value)
         {
             fileBrowser.TextFileNames = fod.GetFileList();
             ReadSelectedFiles();
         }
     }
 }