Documentation of flags and stubs

By ndsouza

· At the beginning of the development of the program, I created a basic outlay of the program. I created the navigation through my storyboards and then created stubs (empty forms) and linked the forms together through buttons. This meant that the main menu contained 4 buttons that could be clicked to redirect the user to each form. In this way, I was able to simulate that these processes would occur. (buttons to hide the main menu and show the selected screen)

· I also made some picture boxes in my help screen and linked them to additional screens. This was done to make sure that on both a single and double click of the image, the user would be redirected to the help screens.(on click and doubleclick the form show and hide operations)

· There is a flag in the program which acts when the user is opening the contacts form. It determines whether a connection has been made to the database, and depending on the situation a message box will inform the user regarding the situation. (CONNECTION)

· There is a flag to determine whether an event exists for a number of days and when it becomes true then the date becomes highlighted. The flag also determines whether or not it needs to create a new text file for that date if it doesn’t exist or if it has to amend the existing file.(System.IO.File.Exists(searcher) = True)

· I have used a flag in the contacts list when a user is created a new person. The module basically checks whether that first name and surname both exist together, and if both exist together than the item will be flagged as already existing and will stop processing the user information, otherwise if it doesn’t exist then the information will be stored. (EXISTS)

· I have used a flag in the contacts list to determine whether or not the information they put in the textboxes are valid or not i.e phone number only contains numbers and such. If the flag is made false then the information will be processed, else it will. (IsNumeric(txtPhone1.Text) = True)

· I have used a flag when the program reads the existing events to determine whether it is a special event or not. if the item is flagged, then the firstly, the images are loaded appropriately, and the 3rd set of information is read by the program, otherwise no image is loaded and the program doesnt crash because it doesnt try looking for something that doesnt exist(SPECIALDAY)

· I have used a set of flags in the delete module to determine whether or not the file exists, so that if it does exist it will be deleted, else it wont attempt at deleting something that doesnt exist and possibly cause a run time error

Leave a Reply