Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public JournalListViewItem(CharacterJournalObject o)
     : base(new string[] { "", "", "", "", "", "", "" })
 {
     obj = o;
 }
Esempio n. 3
0
        public CharacterJournal(CharacterJournalObject obj)
        {
            CharacterJournalObjectInternal newObj = obj as CharacterJournalObjectInternal;

            m_DataObject = newObj;
        }