private void ReservRoom_Click(object sender, RoutedEventArgs e) { var selectedRoom = RoomsGrid.SelectedItem; try { if ((selectedRoom as ROOM) != null) { ROOM r = (ROOM)selectedRoom; AddData window = new AddData(r.ROOM_NUMBER, client.MAIL, r.ROOM_TYPE, r.COST, client); window.Show(); this.Close(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void bunifuFlatButton1_Click(object sender, EventArgs e) { AddData AD = new AddData(); AD.Show(); }