private void OnClickClearDBButton(object sender, RoutedEventArgs e) { SourceCodeInfoInterfaceClass.ResetDB(); if (displayModeDB.IsChecked == true) { ClearDisplay(); } }
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); } }
private void OnClickAddToDBButton(object sender, RoutedEventArgs e) { SourceCodeInfoInterfaceClass.AddScanToDB(scanner); }