Click here to Skip to main content
15,844,009 members
Home / Discussions / C#
   

C#

 
AnswerRe: How autoconnect shapes in Canvas WPF Pin
Gerry Schmitz31-Mar-21 8:33
mveGerry Schmitz31-Mar-21 8:33 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Newbee_Mark31-Mar-21 8:37
Newbee_Mark31-Mar-21 8:37 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Gerry Schmitz31-Mar-21 15:57
mveGerry Schmitz31-Mar-21 15:57 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Newbee_Mark1-Apr-21 0:40
Newbee_Mark1-Apr-21 0:40 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Gerry Schmitz1-Apr-21 7:24
mveGerry Schmitz1-Apr-21 7:24 
GeneralRe: How autoconnect shapes in Canvas WPF Pin
Newbee_Mark1-Apr-21 23:54
Newbee_Mark1-Apr-21 23:54 
QuestionList not printing out hardcoded books already added to list Pin
Member 1451443230-Mar-21 13:14
Member 1451443230-Mar-21 13:14 
AnswerRe: List not printing out hardcoded books already added to list Pin
Dave Kreskowiak30-Mar-21 15:03
mveDave Kreskowiak30-Mar-21 15:03 
This would be EASILY found running the code under the debugger.

Look at the flow of your code, specifically when you call EnterBookInfo AND where you put the "hardcoded" books to get added. So, yeah, those books won't get added until you call, and wait for, user input.

You're program structure is a bit messed up. You should NOT have a class called "AddBook". That should be a method on a collection class called Books. Typically, if you have a name that starts with a verb, "Add", it should be a method in a class. Nouns should be classes, like "Book" or "Books".

"Search" should also be a method of the Books class. Both methods should NOT be prompting or handling user input.

"PrintListOfBooks" should also be a method of a Books class.

Your "UserInput" class, while OK, is a bit misplaced. You should be expanding it a bit to handle all prompting and user input for all menu options.

GeneralRe: List not printing out hardcoded books already added to list Pin
Member 1451443231-Mar-21 11:27
Member 1451443231-Mar-21 11:27 
GeneralRe: List not printing out hardcoded books already added to list Pin
Dave Kreskowiak31-Mar-21 11:33
mveDave Kreskowiak31-Mar-21 11:33 
GeneralRe: List not printing out hardcoded books already added to list Pin
Member 1451443231-Mar-21 11:43
Member 1451443231-Mar-21 11:43 
QuestionHow to convert a column of DataTable into integer values? Pin
Alex Dunlop29-Mar-21 6:30
Alex Dunlop29-Mar-21 6:30 
AnswerRe: How to convert a column of DataTable into integer values? Pin
Richard Deeming29-Mar-21 6:42
mveRichard Deeming29-Mar-21 6:42 
AnswerRe: How to convert a column of DataTable into integer values? Pin
Mycroft Holmes29-Mar-21 21:21
professionalMycroft Holmes29-Mar-21 21:21 
AnswerRe: How to convert a column of DataTable into integer values? Pin
Arfat M1-Apr-21 20:58
Arfat M1-Apr-21 20:58 
GeneralRe: How to convert a column of DataTable into integer values? Pin
Richard Deeming6-Apr-21 1:06
mveRichard Deeming6-Apr-21 1:06 
GeneralChanging value in variable from another called class Pin
StealthRT28-Mar-21 18:26
StealthRT28-Mar-21 18:26 
GeneralRe: Changing value in variable from another called class Pin
Richard Deeming28-Mar-21 23:15
mveRichard Deeming28-Mar-21 23:15 
QuestionHow to detect user email address when user clicks on a link sent to their email? Pin
Zeyad Jalil28-Mar-21 2:44
professionalZeyad Jalil28-Mar-21 2:44 
AnswerRe: How to detect user email address when user clicks on a link sent to their email? Pin
Dave Kreskowiak28-Mar-21 9:20
mveDave Kreskowiak28-Mar-21 9:20 
AnswerRe: How to detect user email address when user clicks on a link sent to their email? Pin
OriginalGriff28-Mar-21 10:59
mveOriginalGriff28-Mar-21 10:59 
AnswerRe: How to detect user email address when user clicks on a link sent to their email? Pin
Richard Deeming28-Mar-21 23:04
mveRichard Deeming28-Mar-21 23:04 
QuestionHow to access cell information and controls of DevExpress Spreadsheet Form from another form in the same application? Pin
Alex Dunlop25-Mar-21 3:43
Alex Dunlop25-Mar-21 3:43 
AnswerRe: How to access cell information and controls of DevExpress Spreadsheet Form from another form in the same application? Pin
OriginalGriff25-Mar-21 6:03
mveOriginalGriff25-Mar-21 6:03 
GeneralRe: How to access cell information and controls of DevExpress Spreadsheet Form from another form in the same application? Pin
Gerry Schmitz25-Mar-21 8:42
mveGerry Schmitz25-Mar-21 8:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.