Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
 /// <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);
             }
         }
     }
 }