Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Let's clean up a few things related to editing tasks, maybe we'll add the ability to create new tasks. First let's go to the task edit page. We want to hook up the OK button so that it saves the changes and then goes back to the ToDo page. The update task method that we copied from our desktop application is responsible for updating the edit task class and saving it. We do have one typo here that we need to fix. If the due date is not filled in, this exception is thrown. Well you'll not want to nail out the entire edit task class, we just want to nail out the due date. Now we can hook up the OK button. We'll update the task, and then we'll show the ToDo page. Now we can go back to the ToDo page. The double click event is currently just opening an empty edit page, we instead want to call the edit task method. The load task method is not filling in all our information just yet. We want to show the due date, we also want to display the priority like it shows on the edit page. Lastly on the setter for the edit task property, we want to clear out some fields if there are no values, in particular if we cannot set the due date because it is empty, you should clear out the due date field as we have done here. We also want to do the same thing on the completed date field. This label should be made invisible if there is no completed date to show. Let's run our project. If we double click, our task opens. We now see the due dates and their priorities. Now let's add the ability to create new tasks. On the ToDo page, we'll add a new method, called New Tasks, with three lines of codes, we'll have the ability to create a new task. We simply create a new task, assign it to the edit task property on the edit page, and then show the edit page. We then call this new task method on the action event of the new task button. And let's run our project. Our new task appears in the list.
| Course: | Real Studio |
| Author: | Paul Lefebvre |
| SKU: | 34190 |
| ISBN: | 1-936334-77-1 |
| Release Date: | 2011-02-02 |
| Duration: | 7 hrs / 87 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |