예제 #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);
 }