diff --git a/ReactiveExample/FodyWeavers.xml b/ReactiveExample/FodyWeavers.xml deleted file mode 100644 index 63fc14848d..0000000000 --- a/ReactiveExample/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/ReactiveExample/FodyWeavers.xsd b/ReactiveExample/FodyWeavers.xsd deleted file mode 100644 index f3ac47620a..0000000000 --- a/ReactiveExample/FodyWeavers.xsd +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/ReactiveExample/LoginView.cs b/ReactiveExample/LoginView.cs index 154bfbeced..a69d38f845 100644 --- a/ReactiveExample/LoginView.cs +++ b/ReactiveExample/LoginView.cs @@ -8,20 +8,137 @@ namespace ReactiveExample; public class LoginView : Window, IViewFor { - private readonly CompositeDisposable _disposable = new (); + private const string SuccessMessage = "The input is valid!"; + private const string ErrorMessage = "Please enter a valid user name and password."; + private const string ProgressMessage = "Logging in..."; + private const string IdleMessage = "Press 'Login' to log in."; + + private readonly CompositeDisposable _disposable = []; public LoginView (LoginViewModel viewModel) { Title = $"Reactive Extensions Example - {Application.QuitKey} to Exit"; ViewModel = viewModel; - Label usernameLengthLabel = UsernameLengthLabel (TitleLabel ()); - TextField usernameInput = UsernameInput (usernameLengthLabel); - Label passwordLengthLabel = PasswordLengthLabel (usernameLengthLabel); - TextField passwordInput = PasswordInput (passwordLengthLabel); - Label validationLabel = ValidationLabel (passwordInput); - Button loginButton = LoginButton (validationLabel); - Button clearButton = ClearButton (loginButton); - LoginProgressLabel (clearButton); + var title = this.AddControl