private void btnPackComplete_Click(object sender, EventArgs e)
 {
     ListView.SelectedListViewItemCollection selectedOrder = this.lvPackList.SelectedItems;
     try
     {
         int selectedOrderId = Convert.ToInt32(selectedOrder[0].SubItems[0].Text);
         ShippingOrder currentOrder = _myOrderManager.GetOrderByID(selectedOrderId);
         currentOrder.ShippingOrderLineItemList = _shippingLineItemMan.GetLineItemsByID(selectedOrderId);
         Boolean success = _myOrderManager.UpdateShippedDate(currentOrder);
         _myOrderManager.UpdateUserId(currentOrder, _myAccessToken.UserID);
         if (success == true)
         {
             MessageBox.Show("Now Printing Pack Slip", "Packing Complete");
             RefreshPackView();
             frmPrintPackReport packReport = new frmPrintPackReport(currentOrder, _myAccessToken);
             packReport.ShowDialog();
             packReport = null;
         }
         else
         {
             MessageBox.Show("Cannot complete action.", "Refreshing");
             RefreshPackView();
         }
     }
     catch (ArgumentOutOfRangeException)
     {
         MessageBox.Show("Please select an order from the list", "No Order Selected");
     }
 }
        }//End PopulatePackListView(..)

        private void btnPackComplete_Click(object sender, EventArgs e)
        {
            ListView.SelectedListViewItemCollection selectedOrder = this.lvPackList.SelectedItems;
            try
            {
                int           selectedOrderId = Convert.ToInt32(selectedOrder[0].SubItems[0].Text);
                ShippingOrder currentOrder    = _myOrderManager.GetOrderByID(selectedOrderId);
                currentOrder.ShippingOrderLineItemList = _shippingLineItemMan.GetLineItemsByID(selectedOrderId);
                Boolean success = _myOrderManager.UpdateShippedDate(currentOrder);
                _myOrderManager.UpdateUserId(currentOrder, _myAccessToken.UserID);
                if (success == true)
                {
                    MessageBox.Show("Now Printing Pack Slip", "Packing Complete");
                    RefreshPackView();
                    frmPrintPackReport packReport = new frmPrintPackReport(currentOrder, _myAccessToken);
                    packReport.ShowDialog();
                    packReport = null;
                }
                else
                {
                    MessageBox.Show("Cannot complete action.", "Refreshing");
                    RefreshPackView();
                }
            }
            catch (ArgumentOutOfRangeException)
            {
                MessageBox.Show("Please select an order from the list", "No Order Selected");
            }
        }//End btnPackComplete_Click(..)
        public frmPrintPackReport(ShippingOrder order, AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _currentOrder = order;
            Instance = this;
        }
        public frmPrintPackReport(ShippingOrder order, AccessToken _myAccessToken)
        {
            InitializeComponent();
            var RoleAccess = new RoleAccess(_myAccessToken, this);

            _currentOrder = order;
            Instance      = this;
        }//frmPrintPackReport(.)
 private void frmPrintPackReport_FormClosed(object sender, FormClosedEventArgs e)
 {
     Instance = null;
 }
        }//frmPrintPackReport_Load(..)

        private void frmPrintPackReport_FormClosed(object sender, FormClosedEventArgs e)
        {
            Instance = null;
        }//frmPrintPackReport_FormClosed(..)