Month: January 2011
-
WPF coding mutually exclusive Check Boxes with Data Binding
Read This Post: WPF coding mutually exclusive Check Boxes with Data BindingLast week I was coding a View that required for me to show two ChekBox controls which were mutually exclusive in the same way that two or more RadioButton controls that belong to the same group would interact. My problem was that one Boolean property which came from a bit column in the database needed…
-
Creating a Singleton (Instance) Class in C#
Read This Post: Creating a Singleton (Instance) Class in C#In application development there are various situations in which it makes sense to code a class in a manner that it can be created (instantiated) once and used throughout the lifetime of the application. Generally this type of class is called a Singleton object. When creating and object, CPU cycles are used up during the:…
-
Include Application Name in Connection Strings
Read This Post: Include Application Name in Connection StringsIn addition to the SQL Server, Database, User ID and Password, you may want to include the Application Name in your connection string parameters. Application Name is an optional argument, but it can greatly help you to segregate the SQL that your application is executing from any other database calls that are being sent from…