November 2008 - Posts
Pat Tormey shows how to "Nullable Types" in a Windows Forms application. Nullable Types are values that can be Null, as in a Date type that has not been assigned. Nullable Types come in handy with dealing with databases that contain nulls and are useful when doing calculations on items that may be Null.
Author: Pat Tormey
Pat Tormey show how to use Encryption tools* that wrap the Data Protection API (DPAPI). DPAPI uses either a Machine Level or User Lever internal key freeing the developer from having to manage the keys. Of course the trade off is that the encrypted data is not portable and might not be a good choice for a database application, but that makes it ideal for a Windows Forms project.
*Don’t forget to reference System.Security.
Author: Pat Tormey
Beth Massi shows how to create a simple data grid in WPF for editing tabular data using Visual Studio 2008.
Author: Beth Massi
Beth Massi shows how to create a Master-Detail (or One-to-Many) data entry form in WPF using Visual Studio 2008.
Author: Beth Massi
In this video Pat Tormey shows how to modify your own classes into data sources that can be bound to editable controls.
In a couple of quick steps Pat shows how to use a BindingList Generic combined with implementing INotifyPropertyChanged Interface allowing you to create a class smart enough to notify a data grid that it’s calculated properties have changed. He also includes a quick review of Nullable Types to explain how best to deal with Null dates.
Author: Pat Tormey
Pat Tormey shows how to use the Singleton Pattern in a Windows Forms application. Patterns are reusable concepts across all programming languages. The Singleton design pattern is used to restrict instantiation of a class to one object. For this example Pat uses a Singleton to "remember" important information about the current customer.
Author: Pat Tormey