Exemple #1
0
 public MainForm()
 {
     InitializeComponent();
     this.mapi = new MAPI();
     this.stores = this.mapi.MessageStores;
     PopulateFolderTree();
 }
Exemple #2
0
        private void FillStores()
        {
            this._mapi = new MAPI();
            this._stores = this._mapi.MessageStores;

            for (int i = 0, length = this._stores.Length; i < length; i++)
            {
                IMAPIMsgStore store = this._stores[i];

                _stackPanel.AddElement(
                    new TextElement("STORE:" + store.ToString() + " ")
                        {
                            Size = new Size(400, 50),
                        }
                    );

                PopulateFolders(store.RootFolder.OpenFolder());
            }
        }
Exemple #3
0
        public WPSMSExt()
        {
            _smsList = new List<MessagingItems>();
            _mapi = new MAPI();
            var stores = _mapi.MessageStores;
            for (int i = 0, length = stores.Length; i < length; i++)
            {
                var store = stores[i];
                if (store.ToString() == "SMS")
                    _storeSMS = store;
            }

            _receiveFolder = _storeSMS.ReceiveFolder;

            Caption = "Messages".Localize();
        }
 public static MAPIMsgStoreID BuildFromID(IEntryID id, MAPI parent, cemapi.IMAPISession session)
 {
     if (id == null)
         return null;
     return new MAPIMsgStoreID(id, parent, session);
 }
 public MAPIMsgStore(MAPI parent, cemapi.IMsgStore msgStore, cemapi.IMAPISession session)
     : base(msgStore, session)
 {
     this.msgStore = msgStore; this.parent = parent; this.session = session;
 }
 private MAPIMsgStoreID(IEntryID id, MAPI parent, cemapi.IMAPISession session)
     : base(id, session)
 {
     this.parent = parent; this.session = session;
 }
 public MAPIMsgStoreID(byte[] id, MAPI parent, cemapi.IMAPISession session)
     : base(id, session)
 {
     this.parent = parent; this.session = session;
 }