コード例 #1
0
        private void btnLoadTestList_Click(object sender, RoutedEventArgs e)
        {
            //Calling the list stored for testing.
            errorList = ErrorParser.getList("error_2019_September_09_202117.csv");

            //This is setting the error list as source.
            errorCodeListView.ItemsSource = errorList;

            //Need to load the filtered list up to match the original
            filteredList = errorList;

            UpdateErrorCount();
        }
コード例 #2
0
        private void btnSelectFileToRead_Click(object sender, RoutedEventArgs e)
        {
            //need to import using statement to use OpenFileDialog
            OpenFileDialog dialog = new OpenFileDialog();

            if (dialog.ShowDialog() == true)
            {
                string filename = dialog.FileName;
                errorList = ErrorParser.getList(filename);
                //This is setting the error list as source.
                errorCodeListView.ItemsSource = errorList;

                //Need to load the filtered list up to match the original
                filteredList = errorList;

                UpdateErrorCount();
            }
        }