private void button1_Click(object sender, RoutedEventArgs e) { Chair okno = new Chair(); okno.ShowDialog(); if (okno.end) { InfoChair inf = new InfoChair(namef, HOUR + ":" + MIN, okno.Row + 1, okno.Place, room[okno.Row + 1][okno.Place].Cost, room[okno.Row + 1][okno.Place].Owner, room[okno.Row + 1][okno.Place].Mobile); inf.ShowDialog(); } }