public CWGLPostedClientFormView(GLDailyJournalPostedClient journalPostedClient) { this.DataContext = this; InitializeComponent(); Title = string.Format(Uniconta.ClientTools.Localization.lookup("ViewOBJ"), UtilDisplay.ClientTypeTableAttributeName(typeof(GLDailyJournalPostedClient))); layoutItems.DataContext = journalPostedClient; this.Loaded += CWGLPostedClientFormView_Loaded; }