void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.loginWindow = ((WpfAppEnglishGrammar.LoginWindow)(target)); return; case 2: this.loginButton = ((System.Windows.Controls.Button)(target)); #line 52 "..\..\LoginWindow.xaml" this.loginButton.Click += new System.Windows.RoutedEventHandler(this.loginButton_Click); #line default #line hidden return; case 3: this.registerButton = ((System.Windows.Controls.Button)(target)); #line 53 "..\..\LoginWindow.xaml" this.registerButton.Click += new System.Windows.RoutedEventHandler(this.RegisterButton_Click); #line default #line hidden return; case 4: this.tbPassword = ((System.Windows.Controls.PasswordBox)(target)); #line 54 "..\..\LoginWindow.xaml" this.tbPassword.MouseEnter += new System.Windows.Input.MouseEventHandler(this.tbPassword_MouseEnter); #line default #line hidden return; case 5: this.tbLogin = ((System.Windows.Controls.TextBox)(target)); #line 55 "..\..\LoginWindow.xaml" this.tbLogin.MouseEnter += new System.Windows.Input.MouseEventHandler(this.tbLogin_MouseEnter); #line default #line hidden return; case 6: this.label = ((System.Windows.Controls.Label)(target)); return; case 7: this.label_Copy = ((System.Windows.Controls.Label)(target)); return; } this._contentLoaded = true; }
private void registerWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { LoginWindow loginWindow = new LoginWindow(); loginWindow.Show(); }