public void DisplayInBoardOne(Batch pObjBatch) { try { if (mBolBoardLoaded) { mObjBoardServer.WriteDisplayOne ( //pObjBatch.Quantity.ToString(), //pObjBatch.Weight.ToString("###0"), //pObjBatch.AverageWeight.ToString("###0.0") pObjBatch.Quantity, pObjBatch.Weight, pObjBatch.AverageWeight ); } else { ShowMessage("Pantalla 1", "La pantalla no se encuentra conectada."); } } catch (Exception lObjException) { ShowMessage("Pantalla 1", lObjException.Message); } }
private void btnSendDisplay1_Click(object sender, RoutedEventArgs e) { try { LogService.WriteInfo(txtHeadsNum_Display1.Text + " " + txtTotalWeight_Display1.Text + " " + txtAverageWeight_Display1.Text); mObjBoards.WriteDisplayOne( txtHeadsNum_Display1.Text, txtTotalWeight_Display1.Text, txtAverageWeight_Display1.Text); } catch (Exception lObjException) { CustomMessageBox.Show("Error", lObjException.Message); } }