private void buttonupdatesoftware_Click(object sender, EventArgs e)
        {
            Orders search = dbEntities.Orders.Find(Convert.ToInt32(comboBoxClientID.SelectedValue));
            Orders searchorder = new Orders(); Softwares soft = new Softwares();

            searchorder.OrderId    = Convert.ToInt32(textBoxOrder_Id.Text);
            searchorder.OrderDate  = Convert.ToDateTime(dateTimePickerOrder_Date.Text);
            searchorder.O_Meth_Pmt = textBoxMeth_pmt.Text;
            searchorder.ClientId   = Convert.ToInt32(textBoxClient_Id.Text);
            soft.SoftwareId        = Convert.ToInt32(textBoxSoftwareId.Text);
            soft.SoftwareName      = textBoxsoftName.Text;
            dbEntities.SaveChanges();
            MessageBox.Show("Data has been Updated");
        }
        private void buttonaddSoftware_Click(object sender, EventArgs e)
        {
            Orders order = new Orders(); Softwares soft = new Softwares();

            order.OrderId     = Convert.ToInt32(textBoxOrder_Id.Text);
            order.OrderDate   = Convert.ToDateTime(dateTimePickerOrder_Date.Text);
            order.O_Meth_Pmt  = textBoxMeth_pmt.Text;
            order.ClientId    = Convert.ToInt32(textBoxClient_Id.Text);
            soft.SoftwareId   = Convert.ToInt32(textBoxSoftwareId.Text);
            soft.SoftwareName = textBoxsoftName.Text;
            dbEntities.Orders.Add(order);
            dbEntities.Softwares.Add(soft);
            dbEntities.SaveChanges();
            MessageBox.Show("Client's orders have been saved");
        }