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); } }
public void CreateNewTag(string tagName) { OutlookTagUtils.CreateNewTag(tagName, this.addin.Application, this.addin.ExplorerTagBar); }
public void AssociateTagWithCurrentResource(string tag) { Outlook.MailItem mi = this.localTaggingContext.GetTagNameSourceMailItem(); OutlookTagUtils.AddTagToEmail(tag, mi, this.addin.InPlayApplication, this.addin.ExplorerTagBarHelper); }