private void Login() { // ASSUME PREVIOUS USER LOGGED IN WAS ME Models.LoginViewModels.ValidUser vu = new Models.LoginViewModels.ValidUser(); // somehow you need to pass me something back from WinformConsumer.Login, so that I can cast it to vu, above; WinformConsumer.Login loginForm = new WinformConsumer.Login("*****@*****.**") { MdiParent = this }; loginForm.Show(); }
private void Login() { // ASSUME PREVIOUS USER LOGGED IN WAS ME Models.LoginViewModels.ValidUser vu = new Models.LoginViewModels.ValidUser(); // somehow you need to pass me something back from WinformConsumer.Login, so that I can cast it to vu, above; WinformConsumer.Login loginForm = new WinformConsumer.Login("*****@*****.**"); //loginForm.ShowDialog(); WinformConsumer.Models.LoginModels.ValidUser rtn = loginForm.ShowLogonDialog(); Console.WriteLine(rtn.LoginUserName); Console.WriteLine(rtn.LoginUserPassword); }