public void Inspector_Activate()
        {
            Outlook.MailItem mi = inspector.CurrentItem as Outlook.MailItem;

            if ((mi != null) && (mi.Sent == false))  // activate the butttons on New, Reply and resumed Draft messages
            {
                OLRegistryAddin buttonSet = new OLRegistryAddin();

                UpdateBody olMessage = new UpdateBody();
                olMessage.RemoveOffsiteMessage(mi);
                olMessage.updateTask(mi, buttonSet.RegCurrentValue());
            }

            Inspector_Close();
        }
Пример #2
0
 private void Tagline()
 {
     Outlook.Inspector inspector = this.Context as Outlook.Inspector;
     Outlook.MailItem  mi        = inspector.CurrentItem as Outlook.MailItem;
     msgBody.updateTask(mi, taglineActive);  // update the message body based on the value of taglineActive
 }