Refactored AppWPF code to conform to Microsoft C# standards.