private void addOrderToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OrdersTable newOrder = new OrdersTable();
            AddOrder    form     = new AddOrder(newOrder, true);

            form.Show();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            OrdersTable order = new OrdersTable();
            AddOrder    form  = new AddOrder(order, true);

            form.Show();
            form.FormClosed += AddOrder_FormClosed;
        }
        private void btnEdit_Click(object sender, EventArgs e)
        {
            OrdersTable order = (OrdersTable)dgvAllOrders.SelectedRows[0].DataBoundItem;

            if (order.OrderStatus == OrderStatus.Canceled.ToString())
            {
                MessageBox.Show("Canceled Order Can Not Be Edited");
            }
            else if (order.OrderStatus == OrderStatus.Processed.ToString())
            {
                MessageBox.Show("Processed Order Can Not Be Edited");
            }
            else
            {
                AddOrder form = new AddOrder(order, false);
                form.Show();
            }
        }