Ejemplo n.º 1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (objGeneralDba == null)
     {
         objGeneralDba = new GeneralDba();
     }
     try
     {
         string retMsg = objGeneralDba.SaveChangeToTransferSlot(QueueId, int.Parse(toFloor.Text), int.Parse(toAisle.Text), int.Parse(toRow.Text));
         if (retMsg.Equals("Success"))
         {
             objGeneralDba.SetReallocateData(QueueId, MachineCode, 4);
             this.Close();
         }
         else
         {
             MessageBox.Show(retMsg);
         }
     }
     catch (FormatException ex)
     {
         MessageBox.Show("Please enter valid inputs");
     }
 }