Reputation: 5171 Overlord
- Active Posts:
- 11,152 (8.68 per day)
- 02-June 10
- Profile Views:
- Last Active:
- 10 minutes ago
- Viewing Board Index
- OS Preference:
- Favorite Browser:
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Dream Kudos:
- Expert In:
Posts I've Made
Posted 8 Dec 2013Note that you have marked "Energy_Selected" as private. Try marking it as public.
Posted 8 Dec 2013The other half of that question isn't about the keypress, but the closing of all those windows. Perhaps you're asking "How do I know what windows are open?"; its hard to tell from the post. But if that's the case, you need to keep each Form as part of a list when you open it. Then you can iterate through them to close them. Its perfectly legal to use List<Form>
Posted 6 Dec 2013... damsel in distress is merely a common quote meaning needing help desperately.
Its clear that English is not your first language. That's fine as we have many foreign speakers here and we do our best to work through language barriers. I admit your English is better than my Russian. But I think in this case you've mis-interpreted the meaning of 'Damsel in distress', at least as far as it is taken in America. Here it does not mean 'Someone needing help desperately.' Here it conjures images of a frail princess in a long gown, faint at any available opportunity and doing her best to ensnare some big strapping prince to save her - in a very 14th century kind of way. The kind of thing that no 20th century woman would be caught dead doing. So when you put that in the title of your question, it really did give the impression you were hoping some male nerd would come to the rescue of a pretty lady. That's why I edited your question to correct the typos, fix the capitalization and take out that bit so it looked a bit less ... what it looked liked.
I am not a programmer nor do I have a job in it or much desire to be one. I was merely trying to help a friend who is getting quite stressed and pulling her hair out over it and yes she has been trying desperately to grasps the concepts. Hence my need to not starting at the beginning she has had this problem a while and whilst I thought I could read about the subject and learn to understand it.
I'm sure your heart was in the right place with the best of intentions. But I don't think you realize what you are implying ab out your friend. Because if you had done that to me I'd be insulted 7 ways from Sunday. Let me re-frame what you just said and did.
Your friend has been going to school for this, has had the benefit of lectures, professors, co-students, practice, textbooks and hands-on lab work on the subject and yet been having trouble. But you felt you could jump in the middle without any of that, no background, no experience and ask a couple questions and understand the material that she didn't, well enough that you could then teach it to her. Wow! You must feel that you are 100 times smarter than her, either because she's average and you're a genius, or because you're average and she's mentally disabled.
If a friend of mine did something like that, basically demonstrating that they feel I was a low I.Q. chimp in comparison to them - I don't think I would be friends with them much longer. I just don't think I could continue to remain close to someone that held me in such low opinion and had so little regard for my skills, intellect or ability to learn.
Posted 6 Dec 2013Funny... Not funny... Not intended to be funny... Maybe it was...
If you continue to build this fast with no real understanding just so you can give it to your teacher its going to fall down and you're going to wind up with egg on your face. Just tell your teacher "You can have it fast, or you can have it right. Which do you want?" That is a lesson you need to get comfortable with in life. You're going to tell it to customers/bosses the rest of your career. Every boss is going to want a month's worth of work in a week of time. Don't let the deadline push you around or make you look incompitent. You have to get realistic about what you can do in 40 hours and be comfortable with co-ordinating with your boss on features. "What features are you willing to do without in order to have it ready by Friday?"
The simple fact is we see thousands of new coders here every month. What we say isn't always about blowing sunshine and rainbows up someone's skirt. I'm sure all these new people have friends and family and clergy and facebook 'friends' to tell them they can be anything they want in life if they just wish/pray for it hard enough. So we really don't get into feeding that lie.
We help those that want to put in effort and work towards furthering their skillset as developers. There are 50-100 core members and 500,000 members asking questions. Its a simple matter of math and time that dictates we can't try to be everyone's fishing buddy.
You can say that in your opinion mentors should only use positive re-enforcement. Great theory. Ask your football coach if that worked for him mentoring his team. Sometimes you just have to swat the dog on the nose with a rolled up newspaper for pissing on the carpet. Sometimes you just have tell people grown up information using your grown up voice and grown up words.
Based on my experience of answering the last 10,980 posts I've seen a pattern to rookie posts where they say "I don't have time to learn this right now, but I need to do it anyway so I can give it to my mom/boss/teacher." resulting in horrible design leading to horrible programs that fail in lots of ways, ultimately leading to pissed off mom/boss/teacher and a rookie coder now so discouraged they give up. I don't want you to give up.
My goal is NOT to get you through this project. I don't give a tinker's damn about this project. My goal is to get you learning and succeeding so you get that praise from the recipient of your program (mom/boss/teacher), which results in that positive re-enforcement you want, which results in you enjoying software development and you stick with it.
So here's my grown up advice to you: Do the job right, or don't bother doing it.
Posted 6 Dec 2013
QuoteI went through debugging and it says the size of my list being 1 over the actual number. If it would start counting at 0 1 2 3
I think you need to start with a couple understandings:
Computers don't lie to you just to make your life hard. If it says there are 10 elements in the list then there really are 10 elements.
All collections in C# are zero-indexed. That means the first element is index 0. The second element is index 1 [...] the one hundredth element is index 99. Don't fight this. Everyone at first tries to strong arm their program in working from 1 because they want the computer to think they way they were raised since childhood. This is a loosing battle. Get comfortable with zero-indexed collections.
I don't know what you're database function for deleting looks like. But your program should not being trying to micromanage the ID numbers. The database should have a unique number for each customer as part of their record. So you should be issueing a query that includes something to the effect of
WHERE custTable.CustID = passedInCustID
Your program should not be trying to manipulate it, or really even care if it is a number or a string. You could find that your customer ID later has to change format. Maybe it becomes a combination of letters and numbers like BC1492 for customer Bill Clinton, because your customer wants the ID to help the office clerks find and alphabetize the file.
So what I'm saying is, you get data from the database and you show it on screen. Then you send back that same information. But you don't try to manage it and keep your program in sync with the DB. The DB will change 100 times a minute if you have multiple users on the network all using the same DB.
- Member Title:
- Please show what you have already tried when asking a question.
- Age Unknown
- Birthday Unknown
- United States of America
- C#, Photography, Camping/Hiking, Travel
- Years Programming:
- Programming Languages:
- C#, WPF, MVVM