private void HandleUserLogNewEntry(object sender, UserLog.NewEntryEventArgs e) { RunOnUiThread(() => { var list = FindViewById <ListView>(Resource.Id.list_log); var adapter = (LogAdapter)list.Adapter; (adapter).AddEntry(e.Entry); var textCount = this.FindViewById <TextView>(Resource.Id.text_log_count); textCount.Text = string.Format(GetString(Resource.String.Vernacular_P0_log_entries_count), UserLog.Count); }); }
private void HandleUserLogNewEntry(object sender, UserLog.NewEntryEventArgs e) { // update entries this.AddEntry(e.Entry); }