void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.Setup = ((WPFAlarmClock.SetUp)(target)); return; case 2: this.txtTitle = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.btn_Min = ((System.Windows.Controls.Button)(target)); return; case 4: this.btn_Max = ((System.Windows.Controls.Button)(target)); return; case 5: this.btn_Close = ((System.Windows.Controls.Button)(target)); return; case 6: this.lbxClock = ((System.Windows.Controls.ListBox)(target)); return; case 7: this.user1 = ((WPFAlarmClock.NewClock)(target)); return; case 8: #line 144 "..\..\SetUp.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Btn_Add_Click); #line default #line hidden return; case 9: #line 145 "..\..\SetUp.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Btn_Add_Click); #line default #line hidden return; } this._contentLoaded = true; }
private void BtnSetUp_Click(object sender, RoutedEventArgs e) { SetUp setUp = new SetUp(); setUp.Show(); }