Пример #1
0
 private void Person2_Checked(object sender, RoutedEventArgs e)
 {
     personOfInterest = Person2;
     Clear();
     Draw((bool)PointBox.IsChecked, (bool)AreaBox.IsChecked);
     InterestDatagrid.ItemsSource = personOfInterest.Incidents;
 }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            databaseWrapper = new DatabaseWrapper("Data Source=C:/Users/Matthew Rimmer/Documents/GitHub/Hackathon/src/FinalDatabase.db;Version=3;new=False;");
            var queryResult1 = databaseWrapper.ReaderQuery("SELECT * FROM PersonOfInterest");

            PersonOfInterestDatagrid.ItemsSource = queryResult1[0];

            var queryResult2 = databaseWrapper.ReaderQuery("SELECT * FROM Address");

            AddressDatagrid.ItemsSource = queryResult2[0];

            var queryResult3 = databaseWrapper.ReaderQuery("SELECT * FROM PoliceCase");

            PoliceCaseDatagrid.ItemsSource = queryResult3[0];

            var queryResult4 = databaseWrapper.ReaderQuery("SELECT * FROM Contact");

            ContactDatagrid.ItemsSource = queryResult4[0];

            //var queryResult5 = databaseWrapper.ReaderQuery("SELECT * FROM ContactPoIRelationship");

            //ContactPoIRelDatagrid.ItemsSource = queryResult5[0];

            var queryResult6 = databaseWrapper.ReaderQuery("SELECT * FROM Report");

            ReportDatagrid.ItemsSource = queryResult6[0];

            //var queryResult7 = databaseWrapper.ReaderQuery("SELECT * FROM NewsArticles");

            //NewsArticlesDatagrid.ItemsSource = queryResult7[0];

            //var queryResult8 = databaseWrapper.ReaderQuery("SELECT * FROM SocialMediaPosts");

            //SocialMediaPostsDatagrid.ItemsSource = personOfInterest.Incidents;


            personOfInterest = Person1;


            PopulatePersons();
        }