private void ShowLogin(string error) { FormLogin loginForm = new FormLogin(error); var result = loginForm.ShowDialog(); while (result != DialogResult.Yes) { } this.Username = loginForm.Username; Write($"DoctorLogin\r\n{loginForm.Username}\r\n{loginForm.Password}"); }
private void ShowLogin() { FormLogin loginForm = new FormLogin(); var result = loginForm.ShowDialog(); while (result != DialogResult.Yes) { } Write($"DoctorLogin\r\n{loginForm.Username}\r\n{loginForm.Password}"); Debug.WriteLine("Doctorlogin send to server..."); }