Пример #1
0
 internal DraftMessageSource(EveMailClient client, DraftMessage dbdraft)
 {
     mClient  = client;
     mDBDraft = dbdraft;
     mAccount = client.Accounts.Find((t) => t.DBAccount.CharacterId == dbdraft.AccountId);
     mUnsaved = false;
 }
Пример #2
0
        public Label(EveMailClient client, Account account, GetCharactersCharacterIdMailLabelsLabel label)
        {
            mClient  = client;
            mAccount = account;

            Name        = label.Name;
            Id          = label.LabelId.Value;
            UnreadCount = label.UnreadCount.HasValue ? label.UnreadCount.Value : 0;


            switch (Name)
            {
            case "Inbox":
                Type = LabelType.Inbox;
                break;

            case "Sent":
                Type = LabelType.Outbox;
                break;

            case "[Corp]":
                Type = LabelType.CorpMail;
                break;

            case "[Alliance]":
                Type = LabelType.AllianceMail;
                break;

            default:
                Type = LabelType.Label;
                break;
            }
        }
Пример #3
0
        public Label(EveMailClient client, Account account, int id, string name, LabelType type)
        {
            mClient  = client;
            mAccount = account;

            Name        = name;
            Id          = id;
            UnreadCount = 0;
            Type        = type;
        }
Пример #4
0
        internal DraftMessageSource(EveMailClient client)
        {
            mClient  = client;
            mDBDraft = new DraftMessage();

            if (client.SendAccounts.Count > 0)
            {
                var ainfo = ((ISourceInfo)client.SendAccounts[0]);
                mAccount = (Account)ainfo.AccountSource;
            }
        }
Пример #5
0
        internal Account(EveMailClient client, DB.Account account)
        {
            mDBAccount = account;
            mClient    = client;

            mDraftLabel = new Label(mClient, this, -1, "Drafts", LabelType.Drafts);

            mEntityInfo.EntityType = EntityType.Character;
            mEntityInfo.EntityID   = account.CharacterId;
            mEntityInfo.Name       = account.CharacterName;
#if FAKE_NAMES
            GenerateFakeInfo();
#endif
            mLabels.Add(mDraftLabel);

            mViewAccount.RegisterHandler("IsExpanded", ViewAccount_IsExpandedChanged);

            mViewAccount.Sync(this);

            mClient.UpdateAccountOperationStarted += mClient_UpdateAccountOperationStarted;
            mClient.AccountRemoved += mClient_AccountRemoved;
        }
Пример #6
0
 internal UserInfoCache(EveMailClient client)
 {
     mClient = client;
 }