private void RelocateEquipment(object sender, RoutedEventArgs e) { if (relocationEquipmentComboBox.SelectedIndex != 0) { EquipmentRelocation equipmentRelocation = new EquipmentRelocation(relocationEquipmentComboBox.SelectedItem.ToString(), mapObjectId); equipmentRelocation.Show(); this.Close(); } }
public AlternativeRelocationAppointments(int roomId, EquipmentRelocation er, SchedulingDto eqRequest, string equipmentName) { InitializeComponent(); this.equipmentName = equipmentName; this.eqRequest = eqRequest; this.er = er; this.roomId = roomId; givenRoom.Text = "Room with id: " + roomId.ToString() + " is unavailable in given time interval. " + "Click 'Show on map' to see that room and click on 'Show appointments' " + "to see available appointments for relocation"; }