/// <summary> /// Initializes a new instance of the <see cref="MainWindow"/> class. /// </summary> public MainWindow() { InitializeComponent(); Build = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); //windowTitle = "Bat Log File Processor " + Build; this.Title = windowTitle + Build; this.InvalidateArrange(); fileBrowser = new FileBrowser(); fileProcessor = new FileProcessor(); batSummary = new BatSummary(); }
/// <summary> /// Allows the user to select additional files to add to the existing /// file list /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ADDButton_Click(object sender, RoutedEventArgs e) { FileBrowser additionalFileBrowser = new FileBrowser(); additionalFileBrowser.SelectLogFiles(); if (additionalFileBrowser.TextFileNames != null && additionalFileBrowser.TextFileNames.Count > 0) { // some additional names have been chosen foreach (var file in additionalFileBrowser.TextFileNames) { if (!fileList.Contains(file)) { fileList.Add(file); } } } }