Guest User

Untitled

a guest
Sep 25th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. Error CS0121 The call is ambiguous between the following methods or properties: 'MainWindow.InitializeComponent()' and 'MainWindow.InitializeComponent()'
  2.  
  3. /// <summary>
  4.  
  5. /// Interaction logic for MainWindow.xaml
  6.  
  7. /// </summary>
  8.  
  9. public partial class MainWindow : Window
  10.  
  11. {
  12.  
  13. public MainWindow()
  14.  
  15. {
  16.  
  17. InitializeComponent();
  18.  
  19. }
  20.  
  21. private bool button1Clicked = false;
  22.  
  23. public bool Windows1 = false;
  24.  
  25. private void Button_Click_1(object sender, RoutedEventArgs e)
  26.  
  27. {
  28.  
  29. void StartWindows_Click()
  30.  
  31. {
  32.  
  33. button1Clicked = true;
  34.  
  35. if (Windows1)
  36.  
  37. {
  38.  
  39. Windows1 win = new Windows1();
  40.  
  41. win.ShowDialog();
  42.  
  43. }
  44.  
  45. // add later versions when i can
  46. }
  47.  
  48. if (WindowsOption1.IsChecked == true)
  49.  
  50. {
  51.  
  52. Windows1 = true;
  53. }
  54.  
  55. }
  56.  
  57. private string UsernameValue = string.Empty;
  58.  
  59. private void Username_TextChanged(object sender, TextChangedEventArgs e)
  60. {
  61.  
  62. UsernameValue = Username.Text;
  63.  
  64. }
  65.  
  66. }
Add Comment
Please, Sign In to add comment