private void refresh_but_Click(object sender, RoutedEventArgs e) { if (objGeneralDba == null) objGeneralDba = new GeneralDba(); //3: for reallocation objGeneralDba.SetReallocateData(this.QueueId,this.MachineCode,3); this.Close(); }
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"); } }