public frmBOL(Order objOrder, BillOfLading objBOL)
        {
            InitializeComponent();

            mobjOrder = objOrder;
            mobjBOL = objBOL;
        }
        private void txtOrderNum_KeyDown(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
                case Keys.Enter:
                    txtOrderNum.ReadOnly = true;
                    Cursor.Current = Cursors.WaitCursor;
                    lblItemDescription.Text = "Searching for Order Lines...";
                    lblItemDescription.Refresh();

                    try
                    {
                        SetDefaults();
                        mobjOrder = new Order(txtOrderNum.Text.Trim());
                        mobjOrderLines = mobjOrder.OrderLines;
                        AddRemoveReleaseColumn();
                        SetDGVDatasource();

                        txtOrderNum.Text = mobjOrder.CustomerOrderNumber.Trim();
                        lblCustomer.Text = mobjOrder.CustomerName.Trim();
                        lblOrderDate.Text = mobjOrder.OrderDate.ToShortDateString();
                        lblOrderType.Text = mobjOrder.IsBlanketOrder ? "Blanket" : "Regular";
                    }
                    catch (Exception objEx)
                    {
                        MessageBox.Show(objEx.Message);
                        txtOrderNum.SelectAll();
                    }

                    txtOrderNum.ReadOnly = false;
                    lblItemDescription.Text = string.Empty;
                    Cursor.Current = Cursors.Default;
                    break;
            }
        }