Exemple #1
0
        /// <summary>
        /// <c>btnOptions_Click</c> event handler
        /// display Auto Delete Email option form to modify AdutDelete options.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOptions_Click(object sender, RibbonControlEventArgs e)
        {
            try
            {

                frmOptions objfrmOptions = new frmOptions(userOptions);

                objfrmOptions.ShowDialog();
                if (objfrmOptions.ValuesUpdated)
                {
                    userOptions.AutoDeleteEmails = objfrmOptions.isAutoDeleteChecked;
                    UserLogManagerUtility.CreateXMLFileForStoringUserOptions(userOptions);
                }

            }
            catch (Exception ex)
            {

            }
        }
Exemple #2
0
        /// <summary>
        /// <c>btnOptions_Click</c> Event Handler
        /// this event display the options window form("frmOptions") to choose the option to Automatically delete the mailitem after uploading or not.
        /// and then apply changes to the configuration file.
        /// Currently it is not used in addin for outlook 2010(ribbon is being used ) 
        /// </summary>
        /// <param name="Ctrl"></param>
        /// <param name="CancelDefault"></param>
        void btnOptions_Click(Microsoft.Office.Core.CommandBarButton Ctrl, ref bool CancelDefault)
        {
            try
            {
                frmOptions objfrmOptions = new frmOptions(userOptions);

                objfrmOptions.ShowDialog();

                if (objfrmOptions.ValuesUpdated)
                {
                    userOptions.AutoDeleteEmails = objfrmOptions.isAutoDeleteChecked;
                    UserLogManagerUtility.CreateXMLFileForStoringUserOptions(userOptions);
                }
            }
            catch (Exception ex)
            {

            }
        }