Esempio n. 1
0
        private string filename; // path complet du fichier.


        public FormArchiveToDisk(ThisAddIn addin)
        {
            Activate(addin);
            InitializeComponent();
            UpdateLabelsWithLang(culture);
            AddLastPathsToCombo();
            selection = new List <Microsoft.Office.Interop.Outlook.MailItem>();
        }
Esempio n. 2
0
        public FormMassArchiveToDisk(ThisAddIn addin)
        {
            Activate(addin);
            InitializeComponent();
            UpdateLabelsWithLang(culture);

            this.archiver = new Archiver("", this);

            this.bt_close.Enabled  = false;
            this.bt_cancel.Enabled = true;
        }
Esempio n. 3
0
        public ConfigForm(ThisAddIn addin)
        {
            var olApplication = addin.GetApplication();
            int lcid          = olApplication.LanguageSettings.get_LanguageID(Microsoft.Office.Core.MsoAppLanguageID.msoLanguageIDUI);

            Thread.CurrentThread.CurrentUICulture = new CultureInfo(lcid);
            InitializeComponent();
            UpdateLabelsWithLang(Thread.CurrentThread.CurrentUICulture);
            Outlook.Folder root = olApplication.Session.DefaultStore.GetRootFolder() as Outlook.Folder;
            EnumerateFolders(root, "└ ");
            ReloadOptions();
        }
Esempio n. 4
0
        protected void Activate(ThisAddIn addin)
        {
            updateItemDelegate = new updateItem(UpdateEtat);
            endArchiveDelegate = new endArchive(Terminate);
            addLIneDelegate    = new addLIne(AddLIneToList);

            this.olApplication = addin.GetApplication();
            int lcid = this.olApplication.LanguageSettings.get_LanguageID(Microsoft.Office.Core.MsoAppLanguageID.msoLanguageIDUI);

            Thread.CurrentThread.CurrentUICulture = new CultureInfo(lcid);
            culture = Thread.CurrentThread.CurrentUICulture;
        }
Esempio n. 5
0
        public FormArchiveRename(ThisAddIn addin)
        {
            Activate(addin);

            if (addin.GetApplication().ActiveExplorer().Selection.Count > 0)
            {
                Microsoft.Office.Interop.Outlook.Selection mySelection = addin.GetApplication().ActiveExplorer().Selection;


                foreach (Object obj in mySelection)
                {
                    if (obj is Microsoft.Office.Interop.Outlook.MailItem)
                    {
                        mailitem = (Microsoft.Office.Interop.Outlook.MailItem)obj;
                    }
                }
            }

            InitializeComponent();
            UpdateLabelsWithLang(culture);
            AddLastPathsToCombo();
        }
Esempio n. 6
0
 public Ribbon1(ThisAddIn outlookApplication, CultureInfo culture)
 {
     addin        = outlookApplication;
     this.culture = culture;
 }