private void Button_Click(object sender, RoutedEventArgs e) { if (dataGridStanje_u_Magacinu.SelectedIndex != -1) { SelectedDoctorRoom = (StorageModel)dataGridStanje_u_Magacinu.SelectedItem; if (SelectedDoctorRoom.Location.Contains("A")) { GroundFloor f = new GroundFloor(SelectedDoctorRoom.Location); f.Show(); this.Close(); } else if (SelectedDoctorRoom.Location.Contains("B")) { GroundFloor2 f = new GroundFloor2(SelectedDoctorRoom.Location); f.Show(); this.Close(); } else { FirstFloor f = new FirstFloor(SelectedDoctorRoom.Location); f.Show(); this.Close(); } } }
private void SecondFloor(object sender, RoutedEventArgs e) { FirstFloor psprat = new FirstFloor(); psprat.Show(); this.Close(); }
private void SecondFloor(object sender, RoutedEventArgs e) { FirstFloor firstf = new FirstFloor(); firstf.Show(); this.Close(); }
private void Button_Click(object sender, RoutedEventArgs e) { SelectedRoom = (WorkDayViewView)raspored.SelectedItem; if (SelectedRoom.IdOfRoom == null) { MessageBox.Show("Soba ne postoji na mapi"); return; } if (SelectedRoom.IdOfRoom.Contains("A")) { GroundFloor f = new GroundFloor(SelectedRoom.IdOfRoom); f.Show(); } else if (SelectedRoom.IdOfRoom.Contains("B")) { GroundFloor2 f = new GroundFloor2(SelectedRoom.IdOfRoom); f.Show(); } else { FirstFloor f = new FirstFloor(SelectedRoom.IdOfRoom); f.Show(); } }
private void Button_Click(object sender, RoutedEventArgs e) { SelectedPatientRoom = (PatientsRoomVieW)PatientsRoomDataGrid.SelectedItem; FirstFloor f = new FirstFloor(SelectedPatientRoom.IdOfRoom); f.Show(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { SelectedDoctorRoom = (DoctorRoomView)DoctorsRoomDataGrid.SelectedItem; if (SelectedDoctorRoom.IdOfRoom.Contains("A")) { GroundFloor f = new GroundFloor(SelectedDoctorRoom.IdOfRoom); f.Show(); } else if (SelectedDoctorRoom.IdOfRoom.Contains("B")) { GroundFloor2 f = new GroundFloor2(SelectedDoctorRoom.IdOfRoom); f.Show(); } else { FirstFloor f = new FirstFloor(SelectedDoctorRoom.IdOfRoom); f.Show(); } }