Anyways I have done what you told me to do in last thread.
I found few more bugs, could you help me fix it ?
Like it will crash when I click previous and next button for like 3 or 4 times then they get disabled. My skip to first or skip to last works fine.
I also added option that date of birth calendar is not enabled in the view mode but only in edit mode, same with age box. Cause its the part of the requirements. But the age wont calculate automatically, logically when you select new age in the calendar it should update age box automatically right.
Its something about array, when my teacher crashed it he was saying something about how array is bad you should use some
- property that I have no idea about.
VulpesPosted Jan 25, 2012, 3:54 PM
Prime bPosted Jan 28, 2012, 6:19 PM
VulpesPosted Jan 28, 2012, 4:53 PM
The 4 navigation buttons will still be disabled when (after first deleting all the records) you add the first record as there's nowhere to go.
However, when the second record is added (inevitably at the end of the list), the 'skip to first' and 'previous' buttons will be enabled so the user can navigate to the first record.
Prime bPosted Jan 28, 2012, 12:01 PM
Here I uploaded updated version
VulpesPosted Jan 28, 2012, 9:13 AM
So in your editButton method you need to add the highlighted lines (I'm using the old variable names for now):
if (dr == DialogResult.Yes)
{
ready[corn].FirstName = viewFirstNameTextBox.Text;
ready[corn].LastName = viewLastNameTextBox.Text;
ready[corn].DateOfBirth = viewDateOfBirth.Value;
viewAgeTextBox.Text = ready[corn].Age.ToString();
data.EditStudent(ready[corn]);
}
Notice that the age will only be recalculated once the Save button is pressed.
Prime bPosted Jan 27, 2012, 4:38 PM
VulpesPosted Jan 27, 2012, 5:08 AM
Prime bPosted Jan 26, 2012, 8:02 PM
Well my passion for video games grew in to semi-addiction. I was pretty good at it too, was competing professionally(not sure if you know much about video games).
But i realized video games took over me and my time. So now I go to college do homework which is programming mostly and read books. It just sucks to waste 7 years on worthless video games, when I could have doing programming for 7 years instead, and I would have been a "professional" programmer. There's few things I learned from video games : practicing with best makes you the best in a lot shorter time than if you would have played with players that have same level of expertise as you are. I will catch up quick, I am just not sure enough if programming if that's what I want to do with my life.
I keep trying to sell my awesome video card so I can buy laptop but none is buying it... But return taxes are coming so I am going to use this money for new laptop.
You think apple is any good? I hear people talk about apple so much, but they are so overpriced just like anything else apple creates.
VulpesPosted Jan 26, 2012, 7:05 PM
Prime bPosted Jan 26, 2012, 5:59 PM
Also, do you play any video games?
VulpesPosted Jan 26, 2012, 4:56 PM
Prime bPosted Jan 26, 2012, 3:20 PM
VulpesPosted Jan 26, 2012, 4:49 AM
In fact, I though you'd made them up yourself and that they might mean something in Russian ;)
Prime bPosted Jan 25, 2012, 7:59 PM