private void buttonDeleteOL_Click(object sender, EventArgs e)
        {
            OrderLineSoftware ol = dbEntities.OrderLineSoftwares.Find(Convert.ToInt32(textBoxOLID.Text));

            dbEntities.OrderLineSoftwares.Remove(ol);
            dbEntities.SaveChanges();
            MessageBox.Show("The order line was deleted.");
        }
        private void buttonUpdateOL_Click(object sender, EventArgs e)
        {
            OrderLineSoftware ol = dbEntities.OrderLineSoftwares.Find(Convert.ToInt32(textBoxOLID.Text));

            ol.OrderId    = Convert.ToInt32(comboBoxOrderID.Text);
            ol.SoftwareId = Convert.ToInt32(comboBoxSoftwareID.Text);
            ol.OlQuantity = Convert.ToInt32(textBoxOrderLineQuantity.Text);
            dbEntities.SaveChanges();

            MessageBox.Show("The order line was modified");
        }
        private void buttonSearchOL_Click(object sender, EventArgs e)
        {
            OrderLineSoftware ol = dbEntities.OrderLineSoftwares.Find(Convert.ToInt32(maskedTextBoxSearchOLID.Text));

            if (ol != null)
            {
                textBoxOLID.Text              = ol.OlSoftwareId.ToString();
                comboBoxOrderID.Text          = ol.OrderId.ToString();
                comboBoxSoftwareID.Text       = ol.SoftwareId.ToString();
                textBoxOrderLineQuantity.Text = ol.OlQuantity.ToString();
            }
        }
        private void buttonSaveOL_Click(object sender, EventArgs e)
        {
            OrderLineSoftware olSoftware = new OrderLineSoftware();

            olSoftware.OrderId    = Convert.ToInt32(comboBoxOrderID.Text);
            olSoftware.SoftwareId = Convert.ToInt32(comboBoxSoftwareID.Text);
            olSoftware.OlQuantity = Convert.ToInt32(textBoxOrderLineQuantity.Text);
            dbEntities.OrderLineSoftwares.Add(olSoftware);
            dbEntities.SaveChanges();

            MessageBox.Show("The order line was saved");
        }