Пример #1
0
        public void TagButton_Click(object sender, EventArgs e)
        {
            Button         clickedButton = sender as Button;
            int            imageWidth    = clickedButton.Image.Width;
            MouseEventArgs mea           = e as MouseEventArgs;

            if (mea.Location.X <= imageWidth)
            {
                OutlookTagUtils.RemoveTagFromEmail(clickedButton.Text, localTaggingContext.GetTagNameSourceMailItem(), this.addin.InPlayApplication, this.addin.ExplorerTagBarHelper);
            }
        }
Пример #2
0
 public void CreateNewTag(string tagName)
 {
     OutlookTagUtils.CreateNewTag(tagName, this.addin.Application, this.addin.ExplorerTagBar);
 }
Пример #3
0
 public void AssociateTagWithCurrentResource(string tag)
 {
     Outlook.MailItem mi = this.localTaggingContext.GetTagNameSourceMailItem();
     OutlookTagUtils.AddTagToEmail(tag, mi, this.addin.InPlayApplication, this.addin.ExplorerTagBarHelper);
 }