private void ClickSignInLink(object sender, EventArgs e) { if (_signInLink.Text == "Sign In") { Login loginForm = new Login(_presentationModel); if (loginForm.ShowDialog() == DialogResult.OK) LoginState(); } else LogoutState(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.LoginWindow = ((RMS.Login)(target)); return; case 2: this.ttAccount = ((System.Windows.Controls.TextBlock)(target)); return; case 3: this.ttPassword = ((System.Windows.Controls.TextBlock)(target)); return; case 4: this.tbAccount = ((System.Windows.Controls.TextBox)(target)); return; case 5: this.tbPassword = ((System.Windows.Controls.PasswordBox)(target)); return; case 6: this.btLogin = ((System.Windows.Controls.Button)(target)); #line 23 "..\..\LoginWindow.xaml" this.btLogin.Click += new System.Windows.RoutedEventHandler(this.btLogin_Click); #line default #line hidden return; case 7: this.btCancel = ((System.Windows.Controls.Button)(target)); #line 26 "..\..\LoginWindow.xaml" this.btCancel.Click += new System.Windows.RoutedEventHandler(this.btCancel_Click); #line default #line hidden return; } this._contentLoaded = true; }