SlideShare uma empresa Scribd logo
1 de 12
SetFocus Library System Introduction:   ,[object Object],Audience:  ,[object Object],Project Goals: ,[object Object]
Handle all common library functions (e.g. Check a book out, Add a new library member, etc.) with minimal required training.
Easily maintained code.
Appropriate error handling.
Validation for all entered fields.Code Samples Windows Validation         private bool IsValidMember()         {             bool isValid = true;             if (!IsValidName(firstNameTextBox.Text))             {                 if (FirstName.Length == 0)                     ValidatorErrorProvider.SetError(firstNameTextBox, 
You must provide a valid first name
);                 else                     ValidatorErrorProvider.SetError(firstNameTextBox, 
The first name must be capitalized and contain only letters
);                 isValid = false;             }             else                 ValidatorErrorProvider.SetError(firstNameTextBox, string.Empty);             if (!IsValidName(lastNameTextBox.Text))             {                 if (LastName.Length == 0)                     ValidatorErrorProvider.SetError(lastNameTextBox, 
You must provide a valid last name
);                 else                     ValidatorErrorProvider.SetError(lastNameTextBox, 
The last name must be capitalized and contain only letters
);                 isValid = false;             }             else                 ValidatorErrorProvider.SetError(lastNameTextBox, string.Empty);             if (!IsValidMiddleInitial(MiddleInitial))             {                 ValidatorErrorProvider.SetError(middleInitialTextBox, 
The middle initial must be one capital letter or left blank
);                 isValid = false;             }             else                 ValidatorErrorProvider.SetError(middleInitialTextBox, string.Empty);             if (!IsValidStreet(Street))             {                 ValidatorErrorProvider.SetError(streetTextBox, 
You must provide a valid street address
);                 isValid = false;             }             else                 ValidatorErrorProvider.SetError(streetTextBox, string.Empty);             if (!IsValidCity(City))             {                                      ValidatorErrorProvider.SetError(cityTextBox, 
You must provide a valid city name
);                 isValid = false;             }             else                 ValidatorErrorProvider.SetError(cityTextBox, string.Empty);             if (!IsValidZipcode(Zipcode))             {                 if (Zipcode.Length == 0)                     ValidatorErrorProvider.SetError(zipTextBox, 
You must provide a valid zipcode
);                 else                     ValidatorErrorProvider.SetError(zipTextBox, 
The zipcode must be of the format ##### or #####-####
);                 isValid = false;             }             else                 ValidatorErrorProvider.SetError(zipTextBox, string.Empty);             if (!IsValidPhone(Phone))             {                 ValidatorErrorProvider.SetError(phoneTextBox, 
You must provide a valid phone number in the form (###)###-### or leave it blank
);                 isValid = false;             }             else                 ValidatorErrorProvider.SetError(phoneTextBox, string.Empty);             addMemberButton.Enabled = isValid;             return isValid;         }  This section of code is in the AddNewAdultMember form and is used to validate all the data entered into the form.  I chose to place it all in one method so that in order for the Add Member button to be accessible all required fields had valid information. MemberInfo web page  if (lbl.IsJuvenile(memberNumber))             {                 TimeSpan adultAge = new TimeSpan(365 * 18, 0, 0, 0);                 if ((DateTime.Today - lbl.GetJuvenileMemberBirthdate(memberNumber)) > adultAge)                 {                     try                     {                         lbl.PromoteJuvenile(memberNumber);                         messageLabel.Text += lbl.GetMemberFirstName(memberNumber) + 
 
 + lbl.GetMemberLastName(memberNumber) + 
 converted to an adult./n
;                     }                     catch (LibraryException ex)                     {                         if (ex.LibraryErrorCode == ErrorCode.JuvenileNotOldEnough)                             messageLabel.Text += 
Juvenile conversion failed, juvenile not old enough.
;                         else                             throw;                     }                 }                 birthdateLabelLabel.Visible = true;                 birthdateLabelLabel.Text = 
Birthdate: 
;                 birthdateLabel.Text = lbl.GetJuvenileMemberBirthdate(memberNumber).ToLongDateString();                 adultMemberLabelLabel.Visible = true;                 adultMemberLabelLabel.Text = 
Adult Member No: 
;                 adultMemberNumLabel.Text = lbl.GetJuvenileMemberAdultMemberID(memberNumber).ToString();             }             else             {                 birthdateLabelLabel.Visible = false;                 birthdateLabel.Visible = false;                 adultMemberLabelLabel.Visible = false;                 adultMemberNumLabel.Visible = false;                 } This section of code determines if a member is either an adult or juvenile.  If a juvenile member is eligible to be promoted to an adult the conversion is done and a message is added to the page.  If a member is an adult the birthdate and adultMemberNumber labels are made invisible.  This reduces the number of pages that would need to be maintained if I had coded individual adult and juvenile pages. Data Access Layer error handling catch (SqlException ex)             {                 if (ex.Number == 50009 || ex.Number == 50010)                     throw new LibraryException(ErrorCode.CheckOutFailed, 
You must provide a isbn AND a copy number
);                 if (ex.Number == 50011)                     throw new LibraryException(ErrorCode.ItemNotFound);                 if (ex.Number == 50012)                     throw new LibraryException(ErrorCode.ItemNotLoanable,
Item is not loanable
);                 if (ex.Number == 50002)                     throw new LibraryException(ErrorCode.GenericException);                 if (ex.Number == 50004)                     throw new LibraryException(ErrorCode.CheckOutFailed,
You must provide a member_no
);                 if (ex.Number == 50005)                     throw new LibraryException(ErrorCode.NoSuchMember);                 if (ex.Number == 50013)                     throw new LibraryException(ErrorCode.ItemAlreadyOnLoan);                 if (ex.Number == 50016)                     throw new LibraryException(ErrorCode.MembershipExpired);                 throw;             } Errors that occur in the database are returned as just a number.  This code converts the database error number s to a LibraryException, which is a custom exception written for this application. SetFocus Library System The main interface window provides access to all the main functions via the menu bar or tool strip.  The grid view also provides a context menu for item related tasks. Windows Check In Check in form used to process items that have been returned. Windows Check Out Check out form used to process items when a member wishes to take an item from the library Windows Add Adult Form used to enter a new adult member.  Fields are validated to ensure proper formatting. Windows Add Juvenile Form used to add a new juvenile member.  The Parent ID field is checked against the database to ensure that it is valid. Web Get Member Information Main interface of the web application.  Navigation is done view the links along the left side.  The system has a security feature that only allows registered librarians and volunteers access the interface. Web Member Information Display of member information.  Juvenile members also list the adult member ID and the member’s birth date. Web Add Adult Member Form used for entry of new adult members. Web Add Juvenile Member Form used for entry of new juvenile members. Web Add New Item Form used for entering a new item into the system.  Form has validation of the ISBN so to prevent duplicate items. Web Check In Form for checking in an item upon return. Web Check Out Form for checking on a item from the library system.
Christopher Latham Portfolio
Christopher Latham Portfolio
Christopher Latham Portfolio
Christopher Latham Portfolio
Christopher Latham Portfolio
Christopher Latham Portfolio
Christopher Latham Portfolio

Mais conteúdo relacionado

Mais procurados

Zhongl scala summary
Zhongl scala summaryZhongl scala summary
Zhongl scala summary
lunfu zhong
 
Building Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModelBuilding Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModel
pauldix
 
Building Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModelBuilding Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModel
pauldix
 
JavaScript: Variables and Functions
JavaScript: Variables and FunctionsJavaScript: Variables and Functions
JavaScript: Variables and Functions
Jussi Pohjolainen
 
Refactoring in Practice - Sunnyconf 2010
Refactoring in Practice - Sunnyconf 2010Refactoring in Practice - Sunnyconf 2010
Refactoring in Practice - Sunnyconf 2010
Alex Sharp
 

Mais procurados (20)

You code sucks, let's fix it
You code sucks, let's fix itYou code sucks, let's fix it
You code sucks, let's fix it
 
Javascript 攻佔桌面應用程式:使用 electron
Javascript 攻佔桌面應用程式:使用 electronJavascript 攻佔桌面應用程式:使用 electron
Javascript 攻佔桌面應用程式:使用 electron
 
Object Calisthenics Applied to PHP
Object Calisthenics Applied to PHPObject Calisthenics Applied to PHP
Object Calisthenics Applied to PHP
 
Object Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHPObject Calisthenics Adapted for PHP
Object Calisthenics Adapted for PHP
 
PHP for Adults: Clean Code and Object Calisthenics
PHP for Adults: Clean Code and Object CalisthenicsPHP for Adults: Clean Code and Object Calisthenics
PHP for Adults: Clean Code and Object Calisthenics
 
Dompletion: DOM-Aware JavaScript Code Completion
Dompletion: DOM-Aware JavaScript Code CompletionDompletion: DOM-Aware JavaScript Code Completion
Dompletion: DOM-Aware JavaScript Code Completion
 
Scala on Your Phone
Scala on Your PhoneScala on Your Phone
Scala on Your Phone
 
Zhongl scala summary
Zhongl scala summaryZhongl scala summary
Zhongl scala summary
 
Building Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModelBuilding Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModel
 
Building Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModelBuilding Web Service Clients with ActiveModel
Building Web Service Clients with ActiveModel
 
Building an api using golang and postgre sql v1.0
Building an api using golang and postgre sql v1.0Building an api using golang and postgre sql v1.0
Building an api using golang and postgre sql v1.0
 
Ecom lec4 fall16_jpa
Ecom lec4 fall16_jpaEcom lec4 fall16_jpa
Ecom lec4 fall16_jpa
 
Ruby on rails
Ruby on rails Ruby on rails
Ruby on rails
 
Web 6 | JavaScript DOM
Web 6 | JavaScript DOMWeb 6 | JavaScript DOM
Web 6 | JavaScript DOM
 
JavaScript: Variables and Functions
JavaScript: Variables and FunctionsJavaScript: Variables and Functions
JavaScript: Variables and Functions
 
Art of Javascript
Art of JavascriptArt of Javascript
Art of Javascript
 
Javascript Experiment
Javascript ExperimentJavascript Experiment
Javascript Experiment
 
Dependency rejection and TDD without Mocks
Dependency rejection and TDD without MocksDependency rejection and TDD without Mocks
Dependency rejection and TDD without Mocks
 
Java script -23jan2015
Java script -23jan2015Java script -23jan2015
Java script -23jan2015
 
Refactoring in Practice - Sunnyconf 2010
Refactoring in Practice - Sunnyconf 2010Refactoring in Practice - Sunnyconf 2010
Refactoring in Practice - Sunnyconf 2010
 

Destaque (7)

Introduction to AJAX and DWR
Introduction to AJAX and DWRIntroduction to AJAX and DWR
Introduction to AJAX and DWR
 
I Pods And I Tunes Power Point Histe Slide Show
I Pods And I Tunes Power Point  Histe Slide ShowI Pods And I Tunes Power Point  Histe Slide Show
I Pods And I Tunes Power Point Histe Slide Show
 
Java Script Introduction
Java Script IntroductionJava Script Introduction
Java Script Introduction
 
Reverse ajax in 2014
Reverse ajax in 2014Reverse ajax in 2014
Reverse ajax in 2014
 
Christopher Latham
Christopher LathamChristopher Latham
Christopher Latham
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajax
 
Ajax ppt - 32 slides
Ajax ppt - 32 slidesAjax ppt - 32 slides
Ajax ppt - 32 slides
 

Semelhante a Christopher Latham Portfolio

SetFocus Portfolio
SetFocus PortfolioSetFocus Portfolio
SetFocus Portfolio
donjoshu
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
Varun C M
 
Frank Rodenbaugh Portfolio
Frank Rodenbaugh PortfolioFrank Rodenbaugh Portfolio
Frank Rodenbaugh Portfolio
FrankRodenbaugh
 
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdfSummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
ARORACOCKERY2111
 

Semelhante a Christopher Latham Portfolio (20)

My Portfolio
My PortfolioMy Portfolio
My Portfolio
 
SetFocus Portfolio
SetFocus PortfolioSetFocus Portfolio
SetFocus Portfolio
 
full stack practical assignment msc cs.pdf
full stack practical assignment msc cs.pdffull stack practical assignment msc cs.pdf
full stack practical assignment msc cs.pdf
 
Library Project
Library ProjectLibrary Project
Library Project
 
Javascript variables and datatypes
Javascript variables and datatypesJavascript variables and datatypes
Javascript variables and datatypes
 
Ensure code quality with vs2012
Ensure code quality with vs2012Ensure code quality with vs2012
Ensure code quality with vs2012
 
javascript-variablesanddatatypes-130218094831-phpapp01.pdf
javascript-variablesanddatatypes-130218094831-phpapp01.pdfjavascript-variablesanddatatypes-130218094831-phpapp01.pdf
javascript-variablesanddatatypes-130218094831-phpapp01.pdf
 
Frank Rodenbaugh Portfolio
Frank Rodenbaugh PortfolioFrank Rodenbaugh Portfolio
Frank Rodenbaugh Portfolio
 
Javascript
JavascriptJavascript
Javascript
 
Grails UI Primer
Grails UI PrimerGrails UI Primer
Grails UI Primer
 
Javascript
JavascriptJavascript
Javascript
 
Leveraging Symfony2 Forms
Leveraging Symfony2 FormsLeveraging Symfony2 Forms
Leveraging Symfony2 Forms
 
Bare-knuckle web development
Bare-knuckle web developmentBare-knuckle web development
Bare-knuckle web development
 
Jason parsing
Jason parsingJason parsing
Jason parsing
 
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdfSummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
SummaryHW6 Account ManagementIn HW4, you kept track of multiple.pdf
 
Library Management System - V1.0
Library Management System - V1.0Library Management System - V1.0
Library Management System - V1.0
 
How to test complex SaaS applications - The family july 2014
How to test complex SaaS applications - The family july 2014How to test complex SaaS applications - The family july 2014
How to test complex SaaS applications - The family july 2014
 
Lecture7 pattern
Lecture7 patternLecture7 pattern
Lecture7 pattern
 
Michael Colon Portfolio
Michael Colon PortfolioMichael Colon Portfolio
Michael Colon Portfolio
 
The Xtext Grammar Language
The Xtext Grammar LanguageThe Xtext Grammar Language
The Xtext Grammar Language
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Christopher Latham Portfolio

  • 1.
  • 2. Handle all common library functions (e.g. Check a book out, Add a new library member, etc.) with minimal required training.
  • 5. Validation for all entered fields.Code Samples Windows Validation private bool IsValidMember() { bool isValid = true; if (!IsValidName(firstNameTextBox.Text)) { if (FirstName.Length == 0) ValidatorErrorProvider.SetError(firstNameTextBox, You must provide a valid first name ); else ValidatorErrorProvider.SetError(firstNameTextBox, The first name must be capitalized and contain only letters ); isValid = false; } else ValidatorErrorProvider.SetError(firstNameTextBox, string.Empty); if (!IsValidName(lastNameTextBox.Text)) { if (LastName.Length == 0) ValidatorErrorProvider.SetError(lastNameTextBox, You must provide a valid last name ); else ValidatorErrorProvider.SetError(lastNameTextBox, The last name must be capitalized and contain only letters ); isValid = false; } else ValidatorErrorProvider.SetError(lastNameTextBox, string.Empty); if (!IsValidMiddleInitial(MiddleInitial)) { ValidatorErrorProvider.SetError(middleInitialTextBox, The middle initial must be one capital letter or left blank ); isValid = false; } else ValidatorErrorProvider.SetError(middleInitialTextBox, string.Empty); if (!IsValidStreet(Street)) { ValidatorErrorProvider.SetError(streetTextBox, You must provide a valid street address ); isValid = false; } else ValidatorErrorProvider.SetError(streetTextBox, string.Empty); if (!IsValidCity(City)) { ValidatorErrorProvider.SetError(cityTextBox, You must provide a valid city name ); isValid = false; } else ValidatorErrorProvider.SetError(cityTextBox, string.Empty); if (!IsValidZipcode(Zipcode)) { if (Zipcode.Length == 0) ValidatorErrorProvider.SetError(zipTextBox, You must provide a valid zipcode ); else ValidatorErrorProvider.SetError(zipTextBox, The zipcode must be of the format ##### or #####-#### ); isValid = false; } else ValidatorErrorProvider.SetError(zipTextBox, string.Empty); if (!IsValidPhone(Phone)) { ValidatorErrorProvider.SetError(phoneTextBox, You must provide a valid phone number in the form (###)###-### or leave it blank ); isValid = false; } else ValidatorErrorProvider.SetError(phoneTextBox, string.Empty); addMemberButton.Enabled = isValid; return isValid; } This section of code is in the AddNewAdultMember form and is used to validate all the data entered into the form. I chose to place it all in one method so that in order for the Add Member button to be accessible all required fields had valid information. MemberInfo web page if (lbl.IsJuvenile(memberNumber)) { TimeSpan adultAge = new TimeSpan(365 * 18, 0, 0, 0); if ((DateTime.Today - lbl.GetJuvenileMemberBirthdate(memberNumber)) > adultAge) { try { lbl.PromoteJuvenile(memberNumber); messageLabel.Text += lbl.GetMemberFirstName(memberNumber) + + lbl.GetMemberLastName(memberNumber) + converted to an adult./n ; } catch (LibraryException ex) { if (ex.LibraryErrorCode == ErrorCode.JuvenileNotOldEnough) messageLabel.Text += Juvenile conversion failed, juvenile not old enough. ; else throw; } } birthdateLabelLabel.Visible = true; birthdateLabelLabel.Text = Birthdate: ; birthdateLabel.Text = lbl.GetJuvenileMemberBirthdate(memberNumber).ToLongDateString(); adultMemberLabelLabel.Visible = true; adultMemberLabelLabel.Text = Adult Member No: ; adultMemberNumLabel.Text = lbl.GetJuvenileMemberAdultMemberID(memberNumber).ToString(); } else { birthdateLabelLabel.Visible = false; birthdateLabel.Visible = false; adultMemberLabelLabel.Visible = false; adultMemberNumLabel.Visible = false; } This section of code determines if a member is either an adult or juvenile. If a juvenile member is eligible to be promoted to an adult the conversion is done and a message is added to the page. If a member is an adult the birthdate and adultMemberNumber labels are made invisible. This reduces the number of pages that would need to be maintained if I had coded individual adult and juvenile pages. Data Access Layer error handling catch (SqlException ex) { if (ex.Number == 50009 || ex.Number == 50010) throw new LibraryException(ErrorCode.CheckOutFailed, You must provide a isbn AND a copy number ); if (ex.Number == 50011) throw new LibraryException(ErrorCode.ItemNotFound); if (ex.Number == 50012) throw new LibraryException(ErrorCode.ItemNotLoanable, Item is not loanable ); if (ex.Number == 50002) throw new LibraryException(ErrorCode.GenericException); if (ex.Number == 50004) throw new LibraryException(ErrorCode.CheckOutFailed, You must provide a member_no ); if (ex.Number == 50005) throw new LibraryException(ErrorCode.NoSuchMember); if (ex.Number == 50013) throw new LibraryException(ErrorCode.ItemAlreadyOnLoan); if (ex.Number == 50016) throw new LibraryException(ErrorCode.MembershipExpired); throw; } Errors that occur in the database are returned as just a number. This code converts the database error number s to a LibraryException, which is a custom exception written for this application. SetFocus Library System The main interface window provides access to all the main functions via the menu bar or tool strip. The grid view also provides a context menu for item related tasks. Windows Check In Check in form used to process items that have been returned. Windows Check Out Check out form used to process items when a member wishes to take an item from the library Windows Add Adult Form used to enter a new adult member. Fields are validated to ensure proper formatting. Windows Add Juvenile Form used to add a new juvenile member. The Parent ID field is checked against the database to ensure that it is valid. Web Get Member Information Main interface of the web application. Navigation is done view the links along the left side. The system has a security feature that only allows registered librarians and volunteers access the interface. Web Member Information Display of member information. Juvenile members also list the adult member ID and the member’s birth date. Web Add Adult Member Form used for entry of new adult members. Web Add Juvenile Member Form used for entry of new juvenile members. Web Add New Item Form used for entering a new item into the system. Form has validation of the ISBN so to prevent duplicate items. Web Check In Form for checking in an item upon return. Web Check Out Form for checking on a item from the library system.