WPF Implementing Validation INotifyDataErrorInfo

INotifyDataErrorInfo Before diving into implementation of INotifyDataErrorInfo, make sure you have a good grasp of WPF Data Binding. 3 important usage/returns of INotifyDataErrorInfo interface: HasErrors - bool property that is binded when the Model has any error. GetErrors - IEnumberable ErrorsChanged - Event Let’s create a model (Person class) that implements INotifyDataErrorInfo class Person : INotifyDataErrorInfo { public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged; public System.Collections.IEnumerable GetErrors(string propertyName) { } public bool HasErrors { get { return true; } } } Let’s define a dictionary errors...

December 12, 2013 · 1 min · Jommel Colcol

Legacy Systems: To Maintain, Refactor or Rewrite?

When I first started as a software engineer in my first professional job. We cater different applications designed using .NET, Python and PHP. And one of the big task for me at that time is handling a legacy system. Different organization and companies have different definition of legacy code/system. In our organization, a legacy system is old, ugly and difficult to maintain. No tests, unusable comments, no documentations, or whatsover, if there’s any, it’s of no use....

July 4, 2013 · 3 min · Jommel Colcol

C# Concatenation: The Good, The Bad and The Ugly

Background In my current previous full time job, majority of the tasks we have are concerning about string manipulation. The applications that we are creating and maintaining are tools use by our journals team. Our clients are multinational publishing companies that are producers of online journals, books and research resources. We automate journals analysts tasks related to XML, HTML formattings etc. Most of our business logic tasks involve string manipulation, we manipulate a lot of text....

April 12, 2013 · 3 min · Jommel Colcol