Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        private void bunifuFlatButton1_Click(object sender, EventArgs e)
        {
            AddData AD = new AddData();

            AD.Show();
        }