Forms
Files
- LoginForm.Designer.cs
This file is a Windows Forms Designer-generated code-behind for the `LoginForm` class within the `GlassHopper.Forms` namespace. It automatically initializes and configures the user interface components when the application starts, ensuring the form renders correctly without manual coding. Key components include two labels for "Email" and "Password," corresponding text boxes (with the password field masked), and an "OK" button that closes the dialog upon clicking. The form itself is styled as a fixed-size dialog with centered positioning and specific font settings to match the application's theme. This separation of UI layout from business logic allows developers to modify the design visually while keeping the underlying C# code clean and maintainable.
- LoginForm.cs
This file defines a Windows Forms user interface class named `LoginForm` within the `GlassHopper.Forms` namespace. It inherits from the standard `Form` class and serves as a simple login dialog for capturing user credentials. The key components are two public read-only properties, `Username` and `Password`, which expose the text values of internal controls (`txtUser` and `txtPsw`). These properties allow external code to retrieve the entered credentials after the form is closed. The constructor initializes the form's components using the auto-generated `InitializeComponent` method. Overall, it acts as a lightweight container for inputting authentication data.
- LoginForm.resx
This is a .NET Resource File (`.resx`) containing XML-based localization data for a component named "LoginForm." The UTF-8 BOM (`ef bb bf`) and XML declaration header confirm its structure as an extensible resource file used to store strings, images, or other objects for UI localization.