Error CS0121 The call is ambiguous between the following methods or properties: 'MainWindow.InitializeComponent()' and 'MainWindow.InitializeComponent()' /// /// Interaction logic for MainWindow.xaml /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private bool button1Clicked = false; public bool Windows1 = false; private void Button_Click_1(object sender, RoutedEventArgs e) { void StartWindows_Click() { button1Clicked = true; if (Windows1) { Windows1 win = new Windows1(); win.ShowDialog(); } // add later versions when i can } if (WindowsOption1.IsChecked == true) { Windows1 = true; } } private string UsernameValue = string.Empty; private void Username_TextChanged(object sender, TextChangedEventArgs e) { UsernameValue = Username.Text; } }