Commit Graph

18 Commits

Author SHA1 Message Date
kougyokugentou
f6a28cbd66 Add: Delete button
Move: Last admin check to bool CheckIfLastAdmin
2021-02-02 22:07:04 -08:00
kougyokugentou
525b7b97e2 Add: Form validation before adding a guardian, either existing or new
Add: Capitalization of children's names and race.
2021-02-02 21:14:08 -08:00
kougyokugentou
e856320df9 Sloppy hax to ensure a guardian is attached to a new child.
I gave up on the all-in-one save button.
2021-01-30 12:53:48 -08:00
kougyokugentou
075929bbe6 Fix: child global needs to initialize to new child object.
Fix: picture box tags
Add: isAdmin column to guardian datagrid view
Add: Sanity check if deleting last admin
BUG: program inserts new child before attaching new guardian
2021-01-29 22:13:13 -08:00
kougyokugentou
48a8e88bac Clean up unneeded usings
Add TODO
FillGuardiansComboBox after gCrudForm is closed.
Move ensuring child has at least one guardian on save child button
ADD: add child code
2021-01-29 21:16:59 -08:00
kougyokugentou
5dbd4acc27 Add check if child has no guardians assigned, do not allow form closure. 2021-01-27 14:59:00 -08:00
kougyokugentou
c27cd7f975 Read the guardian from the guardian crud form upon guardian form crud form close.
Add some functionality to add a guardian to the child if the new guardian button was clicked.
Add validation, if child has no guardians display a message.
2021-01-27 14:08:19 -08:00
kougyokugentou
68e67516c0 Validate input on child save & close 2021-01-27 09:20:15 -08:00
kougyokugentou
1e0ddf291b Change: global guardian_id to public static for access by the guardian crud form.
Add: Source code comments.
Add: Button to implement guardian crud form
Add: Functionality to delete guardian.
2021-01-25 21:21:45 -08:00
kougyokugentou
1916c27af6 Move guardian_id to global for the guardian crud form.
Add a found guardian combobox to add existing guardians to a child.
ADD: Code to add an existing guardian to a child
ADD: Code to pluck the guardian_id out of the currently selected combobox bound list of guardians
Wrap FileOK in try/catch.
2021-01-24 22:51:42 -08:00
kougyokugentou
0eb4c922d0 Add: photo from disk 2021-01-23 20:23:06 -08:00
kougyokugentou
2e501e5133 Pop child object up to global.
Add DOB picker to form
Add some starter code to save/update and create a new child. Update should be done since it doesn't touch guardians.
2021-01-22 23:18:39 -08:00
kougyokugentou
76fe5962a1 Add to-do for ted 2021-01-22 22:40:21 -08:00
kougyokugentou
3211d39b37 Revert "Add code to take photo from camera, needs fine-tuning"
This reverts commit bdeb116e14.
2021-01-22 22:37:53 -08:00
kougyokugentou
bdeb116e14 Add code to take photo from camera, needs fine-tuning 2021-01-22 21:35:23 -08:00
kougyokugentou
cffef0547e Add: Fill gender combo box with enum
Add: Read in child gender from DB using enum
Add: Clear guardian datagridview when guardians are loaded.
2021-01-22 20:33:54 -08:00
kougyokugentou
f4b54e8c6f Add: Basic functionality for the child crud form. 2021-01-21 22:58:52 -08:00
kougyokugentou
1520a97dc6 Add: Initial commit of the child crud form. 2021-01-20 22:29:15 -08:00