private void RoomsButton_Clicked(object sender, RoutedEventArgs e) { Window roomsWindow = new RoomsWindow(); roomsWindow.Owner = this; this.Hide(); roomsWindow.Show(); }
//parameter ownerWin is temp solution public AddRoomWindow(Room newRoom, RoomsWindow ownerWin) { this.newRoom = newRoom; this.ownerWin = ownerWin; InitializeComponent(); }