private void TileALisCon_Click(object sender, RoutedEventArgs e) { ListContrato w = new ListContrato(); w.Show(); this.Hide(); if (Contraste) { OnContraste(w); w.Contraste = true; } }
private void TileListCon_Click(object sender, RoutedEventArgs e) { MainWindow mw = new MainWindow(); ListContrato w = new ListContrato(); w.Show(); this.Hide(); if (Contraste) { mw.OnContraste(w); w.Contraste = true; } }