Bang Head!
-
Dude MVVM has a different meaning! :wtf: :wtf: :wtf:
public LoginControl() { InitializeComponent(); passwordTextBox.Focus(); LoginViewModel loginViewModel = new LoginViewModel(new Model.UserCredential { Username = Environment.UserName, Domain = Environment.UserDomainName }); ((LoginCommand)loginViewModel.LoginCommand).LoginResultValueChanged += new LoginCommand.LoginResultChangedHandler(LoginCommand\_LoginResultValueChanged); loginViewModel.LoginRemembered += new LoginViewModel.LoginRememberedHandler(loginViewModel\_LoginRemembered); this.DataContext = loginViewModel; } public bool LoginAsDifferentUser { get { return \_isLoginAsDifferentUser; } set { \_isLoginAsDifferentUser = value; if (this.DataContext != null && \_isLoginAsDifferentUser) { (this.DataContext as LoginViewModel).ClearLoginCredential(); //usernameTextBox.Focus(); } //else passwordTextBox.Focus(); } }
Regards Vallarasu S | FSharpMe.blogspot.com
-
Dude MVVM has a different meaning! :wtf: :wtf: :wtf:
public LoginControl() { InitializeComponent(); passwordTextBox.Focus(); LoginViewModel loginViewModel = new LoginViewModel(new Model.UserCredential { Username = Environment.UserName, Domain = Environment.UserDomainName }); ((LoginCommand)loginViewModel.LoginCommand).LoginResultValueChanged += new LoginCommand.LoginResultChangedHandler(LoginCommand\_LoginResultValueChanged); loginViewModel.LoginRemembered += new LoginViewModel.LoginRememberedHandler(loginViewModel\_LoginRemembered); this.DataContext = loginViewModel; } public bool LoginAsDifferentUser { get { return \_isLoginAsDifferentUser; } set { \_isLoginAsDifferentUser = value; if (this.DataContext != null && \_isLoginAsDifferentUser) { (this.DataContext as LoginViewModel).ClearLoginCredential(); //usernameTextBox.Focus(); } //else passwordTextBox.Focus(); } }
Regards Vallarasu S | FSharpMe.blogspot.com
-
Dude MVVM has a different meaning! :wtf: :wtf: :wtf:
public LoginControl() { InitializeComponent(); passwordTextBox.Focus(); LoginViewModel loginViewModel = new LoginViewModel(new Model.UserCredential { Username = Environment.UserName, Domain = Environment.UserDomainName }); ((LoginCommand)loginViewModel.LoginCommand).LoginResultValueChanged += new LoginCommand.LoginResultChangedHandler(LoginCommand\_LoginResultValueChanged); loginViewModel.LoginRemembered += new LoginViewModel.LoginRememberedHandler(loginViewModel\_LoginRemembered); this.DataContext = loginViewModel; } public bool LoginAsDifferentUser { get { return \_isLoginAsDifferentUser; } set { \_isLoginAsDifferentUser = value; if (this.DataContext != null && \_isLoginAsDifferentUser) { (this.DataContext as LoginViewModel).ClearLoginCredential(); //usernameTextBox.Focus(); } //else passwordTextBox.Focus(); } }
Regards Vallarasu S | FSharpMe.blogspot.com
X| X| X| Blech! X| X| X|
Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]
-
X| X| X| Blech! X| X| X|
Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]
Darn!! I almost thought you'd say: DLL Hell
-
Darn!! I almost thought you'd say: DLL Hell
ExcellentOrg wrote:
DLL Hell
Well, that works as well!
Bill Gates is a very rich man today... and do you want to know why? The answer is one word: versions. Dave Barry Read more at [BrainyQuote](http://www.brainyquote.com/quotes/topics topic_technology.html#yAfSEbrfumitrteO.99)[^]