void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Brett1 = ((testControl.Brett)(target)); return; case 2: this.wuerfeln = ((System.Windows.Controls.Button)(target)); #line 14 "..\..\Brett.xaml" this.wuerfeln.Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; case 3: this.label1 = ((System.Windows.Controls.Label)(target)); return; case 4: this.Field = ((System.Windows.Controls.Grid)(target)); return; case 5: this.name1 = ((System.Windows.Controls.Label)(target)); return; case 6: this.name2 = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
public MainWindow() { InitializeComponent(); Brett brett = new Brett(); }