private void Strings_Click(object sender, RoutedEventArgs e) { Substring substring = new Substring(); substring.ShowDialog(); }