private void InsertMissionerRecord(CharacterJournalObject obj, int typ) { if (null == obj) { return; } foreach (CorpMissionerPerson person in CorpMissionerPeople) { if (person.id == obj.ownerID2) { if (typ == 33) { ++person.Runs; ++CorpMissionerRuns; } person.Total += obj.amount; CorpMissionerTotal += obj.amount; return; } } // new Person for the list CorpMissionerPerson newPerson = new CorpMissionerPerson(); newPerson.id = obj.ownerID2; newPerson.Name = obj.ownerName2; if (typ == 33) { ++newPerson.Runs; ++CorpMissionerRuns; } newPerson.Total += obj.amount; CorpMissionerTotal += obj.amount; CorpMissionerPeople.Add(newPerson); return; }
public JournalListViewItem(CharacterJournalObject o) : base(new string[] { "", "", "", "", "", "", "" }) { obj = o; }
public CharacterJournal(CharacterJournalObject obj) { CharacterJournalObjectInternal newObj = obj as CharacterJournalObjectInternal; m_DataObject = newObj; }