private void tsEditOrder_Click(object sender, EventArgs e)
        {
            int OrdID = 0;

            if (int.TryParse(dgOrder.CurrentRow.Cells["StockOrder_ID"].Value.ToString(), out OrdID))
            {
                LMSWarehouse.FrmStockOrder FStockOrder = new FrmStockOrder(CompanyID, WarehouseID, OrdID, OrderType);
                FStockOrder.ShowDialog();
                RefreshData();
            }
        }
 private void tdBtnNewOrder_Click(object sender, EventArgs e)
 {
     LMSWarehouse.FrmStockOrder FStockOrder = new FrmStockOrder(CompanyID, WarehouseID, 0, OrderType);
     FStockOrder.ShowDialog();
     RefreshData();
 }