public GUI_SightingHistory()
        {
            dm = new DataManager();
            connection = dm.getConnection();
            InitializeComponent();

            TrackingEntryQuery query = new TrackingEntryQuery(connection);
            List<TrackingEntry> entries = new List<TrackingEntry>();
            entries = query.getAll();

            if (entries != null)
            {
                foreach (TrackingEntry entry in entries)
                {
                    int index = sightinghistorygrid.Rows.Add();
                    DataGridViewRow row = sightinghistorygrid.Rows[index];
                    row.Cells["Column1"].Value = entry.species;
                    row.Cells["Column2"].Value = entry.tagNumber;
                    row.Cells["Column3"].Value = entry.entryDate;
                    row.Cells["Column4"].Value = entry.taggerName;
                    row.Cells["Column5"].Value = entry.taggerID;
                }
            }
        }
        TrackingEntryQuery query; //Query for adding to repository

        #endregion Fields

        #region Constructors

        //Class methods
        //Constructor
        public CalenderProcessing(MySqlConnection connection)
        {
            this.connection = connection;
            query = new TrackingEntryQuery(connection);
        }
 public TrackingEntryUnitTest(MySqlConnection connection)
 {
     this.connection = connection;
     query = new TrackingEntryQuery(connection);
 }
 public SightingHistoryProcessing(MySqlConnection connection)
 {
     trackingquery = new TrackingEntryQuery(connection);
     this.connection = connection;
 }
 public TrackingProcessing(MySqlConnection connection)
 {
     this.connection = connection;
     query = new TrackingEntryQuery(connection);
     locationQuery = new LocationQuery(connection);
 }