Course 10 / Lecture 9:

Learn to use an item manager

In this lecture you will learn to use the item manager. The item manager is a great tool to manage your data classes. It will take care of persistent storage, selection, event management and can be used for many other neat features. You will significantly be more efficient with coding if you master the item manager.

Task #1:

Create an item manager class to keep a list!

The following video shows you how to use the item manager to manage your data classes created in the previous lecture.

Task #2:

Learn what a singleton instance is!

The purpose of a singleton instance is that only one instance of a class exists during the running of the application. If there is an application with multiple threads, the locking procedure helps to prevent to be multiple instances of a class.

Task #3:

Make your item manager persistent!

The previous video and the following figure shows you how to save your data to your storage. In this case, an xml file will be generated in the c:\Program Files\Ozeki\Ozeki10\Data\BarrierControl folder with the License_ prefix. It will keep the license plate number and the automatically generated timestamp. The Task 4 will show you how to add it manually with your app.

Task #4:

Save an item in the item manager!

You can add an item to the item manager through its singleton instance. You need to use the Add method of the class.

More information


Copyright © 2000- |Ozeki Ltd | |
Page: 1128 | | Login
Thank you for visiting this page