-
Notifications
You must be signed in to change notification settings - Fork 0
SafeNotes UI Elements and Variable References
Tyler edited this page Sep 7, 2025
·
1 revision
This page documents the main UI elements, variable names, and their purpose/locations in the SafeNotes app (AppManager.cs
and related files). Use this as a reference for contributing, refactoring, or updating the app.
Variable Name | Type / Control | Purpose / Description | Main Location (File/Class) |
---|---|---|---|
EntriesListBox | ListView/ListBox | Displays user's journal entries. Supports add, edit, delete, select, double-click for delete. |
AppManager.cs , MainForm
|
JournalEntryBox | TextBox | For entering/editing a journal entry. Used in journal tab. |
AppManager.cs , MainForm
|
NotepadTextBox | TextBox | The notepad area for freeform note-taking and file saving. |
AppManager.cs , MainForm
|
NotepadTitle | Label | Shows the title or opened file name for the notepad. |
AppManager.cs , MainForm
|
SavedEntriesCount | Label | Displays the number of saved entries. | AppManager.cs |
CharsInNotepad | Label | Shows character count in the notepad. | AppManager.cs |
ColumnInNotepad | Label | Shows line/column count in notepad. | AppManager.cs |
UserPassword | TextBox | Password input for user authentication and registration. | AppManager.cs |
UserConfirmPassword | TextBox | Password confirmation input during registration/reset. | AppManager.cs |
UserPINCodeField | TextBox | PIN code field for extra login security if enabled. | AppManager.cs |
YourNameBox | TextBox | Stores/edits user's display name. | AppManager.cs |
PasswordGenBox | TextBox | Displays generated passwords (for password generation feature). | AppManager.cs |
PasswordStrength | Label | Shows password strength and estimated time to crack. | AppManager.cs |
PasswordCopiedLabel | Label | Notification for password copy action. | AppManager.cs |
TabControl | TabControl | Hosts major tabs (Journal, Notepad, etc). | AppManager.cs |
JournalTabSelector | TabControl/Tab | Used to control which journal/notepad/settings sub-tab is active. | AppManager.cs |
LeftSettingsNav | TreeView | Navigation tree for settings. | AppManager.cs |
SettingsInfoLabel | Label | Shows extra info/explanations in settings view. | AppManager.cs |
DecryptionStatusLabel | Label | Status label shown during encryption/decryption actions. | AppManager.cs |
LoginTabSelector | TabControl/Tab | Login/registration tab; controls visibility depending on login state. | AppManager.cs |
LoginPage | TabPage | Login/register interface. | AppManager.cs |
Variable Name | Type / Control | Purpose / Description |
---|---|---|
SaveEntryButton | Button | Saves a new or edited journal entry. |
EditEntryButton | Button | Initiates editing for the selected journal entry. |
DeleteEntriesButton | Button | Deletes all entries from the journal. |
EncryptEntriesButton | Button | Encrypts all entries ("Lockdown mode"). |
ImportEntriesButton | Button | Imports entries from a file. |
ExportEntriesButton | Button | Exports entries to a file. |
ChangeNameButton | Button | Saves or enables editing of your name. |
RegenPassButton | Button | Generates a random secure password in the password generator. |
UsePassButton | Button | Applies generated password to the input fields. |
OpenFileButton | Button | Opens a text file into notepad. |
SaveNotepadButton | Button | Saves the notepad contents to a file. |
ClearNotepadButton | Button | Clears the notepad contents. |
ResetAccountCheckbox | CheckBox | Triggers account reset (clears all user data). |
ResetLoginStatusButton | Button | Resets login status (forces re-login). |
ApplyDateCheckbox | CheckBox | If checked, applies date/time to entries. |
LightModeCheckbox | CheckBox | Toggles light/dark mode. |
DisableNotificationsCheckbox | CheckBox | Turns off notification popups. |
RequirePinToLogin | CheckBox | Enables/disables PIN code for login. |
Variable Name | Type / Control | Purpose / Description |
---|---|---|
LabelVisibilityTimer | Timer | Used to hide password copied label after a short interval. |
CheckTimer | Timer | Checks and updates UI state based on entries and password fields. |
- All of the above are declared and used in
SafeNotes/AppManager.cs
as fields or within theMainForm
class. - Most are manipulated via event handlers (e.g.,
SaveEntryButton_Click
,EditEntryButton_Click
, etc.). - Some are also referenced in settings logic, form load, and UI state update methods.
- UI elements are mostly referenced by their variable name in event handler methods.
- To add new logic, locate the relevant event handler (e.g.,
SaveEntryButton_Click
for saving entries) and update logic there. - To change UI appearance or state, update the element’s properties in form initialization or in the appropriate event.
- For new UI elements, add them in the WinForms Designer, then handle their events in
AppManager.cs
.
- Select an entry in
EntriesListBox
. - Click
EditEntryButton
(callsEditEntryButton_Click
). - The selected entry text is loaded into
JournalEntryBox
. - Edit and click
SaveEntryButton
to save changes.
- Click
RegenPassButton
to generate a new password. - The password appears in
PasswordGenBox
. - Click
UsePassButton
to copy the password to input fields.
For further detail on any control, check the corresponding event handler in
AppManager.cs
or search for the variable name in the file.
Last updated: 2025-09-07