private void ChooseJournal_AfterTryGetRecord(object sender, ChooseFromListEventArgs e) { try { var journal = new JournalEntries(Program.GetCurrentCompanyDb()); if (journal.GetByKey(e.Record[JournalEntries.FieldsName.TransId].To <int>())) { journal.FillLines(); } } catch (Exception ex) { ShowMessageError(ex); } }