/// <summary> /// Reprints the selected boxes to the default label printer in the settings. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void printBoxBtn_Click(object sender, RoutedEventArgs e) { //Get selected boxes from listBox to print List <FBABox> printBoxes = GetSelectedBoxes(); //get selected shipments for details FBAShipment shipment = GetShipment(); //send the objects to viewmodel for reprinting. historyViewModel.ReprintLabels(printBoxes, shipment.FullfillmentShipTo, shipment.CompanyShipFrom, shipment.Boxes.Count); }