/// <summary>
        /// Event handler for adding a record.
        /// Opens the add record form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void addRecord_btn_Click(object sender, EventArgs e)
        {
            if (lbl_invalidImportError.Visible)
            {
                lbl_invalidImportError.Visible = false;
            }

            this.Hide();
            AddRecordForm arf = new AddRecordForm(false, controller);

            arf.ShowDialog();
            this.Close();
        }
        /// <summary>
        /// Event handler when the add via barcode button is clicked
        /// Opens the add record form with populated information from the API request
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void addViaBarcode_btn_Click(object sender, EventArgs e)
        {
            if (lbl_invalidImportError.Visible)
            {
                lbl_invalidImportError.Visible = false;
            }

            RecordInfo newInfo = reqHandler.requestRecord(barcodeTxtBox.Text);

            if (newInfo.RecordName == "BadRec")
            {
                barcodeTxtBox.Text = "Invalid Barcode";
            }
            else
            {
                this.Hide();
                AddRecordForm arf = new AddRecordForm(false, controller, newInfo);
                arf.ShowDialog();
                this.Close();
            }
        }
        /// <summary>
        /// Event handler for the edit button
        /// Opens the edit record form for the selected record
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void editRecord_btn_Click(object sender, EventArgs e)
        {
            if (lbl_invalidImportError.Visible)
            {
                lbl_invalidImportError.Visible = false;
            }

            var temp = recordListView.SelectedIndices;

            Record associatedRecord;
            int    index = 0;

            if (temp.Count > 0)
            {
                index            = temp[0];
                associatedRecord = controller.getRecordList().getList()[index];

                this.Hide();
                AddRecordForm arf = new AddRecordForm(true, controller, associatedRecord);
                arf.ShowDialog();
                this.Close();
            }
        }