//End variables

        //Constructor
        public frmRegisterController(Customer customer, MetroForm form)
        {
            this.customer = customer;
            this.form = form;

            //Start instantiations
            database = new Database(form);
            encryptionController = new frmEncryptionController();
            //End instantiations
        }
        //Deletes a certain row in the grid.
        public void deleteData(Customer customer, int rowIndex)
        {
            //Removes the row from the grid.
            grid.Rows.RemoveAt(rowIndex);

            //Deletes a row from the movie database.
            string DDL = "DELETE FROM customer WHERE customer_id = " + customer.getSetCustomerID; //Delete customer using their ID
            OleDbCommand command = new OleDbCommand(DDL, database.getSetCon());
            database.runCommand(command); //Execute the SQL command
        }