Esempio n. 1
0
        private void SetFlag(IResource resMail)
        {
            switch (_flagStatus)
            {
            case 1:
                OutlookFlags.SetCompletedFlag(resMail);
                break;

            case 2:
                if (OutlookSession.Version < 11)
                {
                    if (!OutlookFlags.IsCustomFlagSet(resMail))
                    {
                        OutlookFlags.SetOnResource(resMail, _flagColor);
                    }
                }
                else
                {
                    OutlookFlags.SetOnResource(resMail, _flagColor);
                }
                break;

            default:
                OutlookFlags.ClearFlag(resMail);
                break;
            }
        }
Esempio n. 2
0
        private ExportEmailFlag(IResource emailResource, PairIDs messageIDs)
        {
            _messageIDs    = messageIDs;
            _emailResource = emailResource;
            IResource resFlag = _emailResource.GetLinkProp(ResourceFlag.PropFlag);

            _flagged = (resFlag != null);
            if (_flagged)
            {
                _completed = OutlookFlags.IsCompletedFlag(resFlag);
                _color     = OutlookFlags.GetColorIndex(resFlag);
            }
        }