private void btnShowPoints_Click(object sender, RoutedEventArgs e) { wP = new WindowPoints(); //this.Hide(); wP.ShowDialog(); //this.Show(); }