private void AddButton_Click(object sender, EventArgs e)
        {
            // TODO: add the checks for the input fields used

            Program.myController.AddTransaction((int)comboBox1.SelectedValue, DiscounttextBox.Value, ValueTextBox.Value, ReceivedValueTextBox.Value, checkBox1.Checked);
            Form6_Load(sender, e);

            // show the add transaction details
            TransactionDetails detailsForm = new TransactionDetails(true, (int)DGV.Rows[DGV.RowCount - 1].Cells[0].Value);

            detailsForm.ShowDialog(this);

            DGV.ClearSelection();
        }
        private void DGV_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            TransactionDetails details = new TransactionDetails(false, (int)DGV.SelectedRows[0].Cells[0].Value);

            details.ShowDialog(this);
        }