Ejemplo n.º 1
0
 //ON CLICK : Update the piece from de database (see DBController.OrderPiece method ) and close this form
 private void command_Click(object sender, EventArgs e)
 {
     try
     {
         int n = Int32.Parse(Number.Text);
         DBController.OrderPiece(((PieceStock)Piece.SelectedItem).Id, n);
         Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }