private void ViewParty_Click(object sender, RoutedEventArgs e) { ViewParty party = new ViewParty(); party.ParentWindow = this; this.Hide(); party.Show(); updateData = true; }