private void ButtonManageRooms_Click(object sender, RoutedEventArgs e) { RoomManagementWindow w = new RoomManagementWindow(this, jsonBase); w.Owner = this; w.ShowDialog(); }