private void btnAddAd_Click(object sender, RoutedEventArgs e) { var addAd = new AdEntry(); addAd.ShowDialog(); }