Example #1
0
 private void OnClickClearDBButton(object sender, RoutedEventArgs e)
 {
     SourceCodeInfoInterfaceClass.ResetDB();
     if (displayModeDB.IsChecked == true)
     {
         ClearDisplay();
     }
 }
Example #2
0
        public void DisplayDBinformation()
        {
            try
            {
                dataGridFiles.ItemsSource = SourceCodeInfoInterfaceClass.GetFileData();
            }
            catch (System.Exception ex)
            {
                //Console.Write("\nThere was a problem with the GetFileData returning null.");
                //Console.Write(ex);
            }


            try
            {
                dataGridPackages.ItemsSource = SourceCodeInfoInterfaceClass.GetPackageData();
            }
            catch (System.Exception ex)
            {
                //Console.Write("\nThere was a problem with the GetPackageData returning null.");
                //Console.Write(ex);
            }

            try
            {
                dataGridClasses.ItemsSource = SourceCodeInfoInterfaceClass.GetClassData();
            }
            catch (System.Exception ex)
            {
                //Console.Write("\nThere was a problem with the GetClassData returning null.");
                //Console.Write(ex);
            }

            try
            {
                dataGridMethods.ItemsSource = SourceCodeInfoInterfaceClass.GetMethodData();
            }
            catch (System.Exception ex)
            {
                //Console.Write("\nThere was a problem with the GetMethodData returning null.");
                //Console.Write(ex);
            }
        }
Example #3
0
 private void OnClickAddToDBButton(object sender, RoutedEventArgs e)
 {
     SourceCodeInfoInterfaceClass.AddScanToDB(scanner);
 }