Inheritance: System.ComponentModel.Component
		public int Add(OutlookBarItem item)
		{
			if (Contains(item)) return -1;
			int index = items.Add(item);
			RaiseChanged();
			return index;
		}
		public void Insert(int index, OutlookBarItem item)
		{
			items.Insert(index, item);
			RaiseChanged();
		}
		public void Remove(OutlookBarItem item)
		{
			items.Remove(item);
			RaiseChanged();
		}
		public int IndexOf(OutlookBarItem item)
		{
			return items.IndexOf(item);
		}
		public bool Contains(OutlookBarItem item)
		{
			return items.Contains(item);
		}
Exemplo n.º 6
0
		public void OnItemClicked(OutlookBarBand band, OutlookBarItem item)
		{
			ChoiceBase control = (ChoiceBase)item.Tag;
			control.OnClick(item, null);
		}
Exemplo n.º 7
0
		public void TabOpened(OutlookBarBand band, OutlookBarItem item)
		{
			Debug.WriteLine("opened");
		}
Exemplo n.º 8
0
		protected void MakeButton(OutlookBarBand band , ChoiceBase control)
		{
			UIItemDisplayProperties display = control.GetDisplayProperties();
			display.Text = display.Text.Replace("_", "");
			OutlookBarItem button;
			//			if(m_images!=null && m_images.ImageList.Images.Count>0)
			//			{
			//				button = new OutlookBarItem(display.Text,0,control);
			//			}
			//			else		//no images have been supplied to us!
			button = new OutlookBarItem();
			button.Tag = control;
			control.ReferenceWidget = button;

			if(band.IconView == SidebarLibrary.WinControls.IconView.Large)
			{
				if(m_largeImages.ImageList.Images.Count>0)
					button.ImageIndex = m_largeImages.GetImageIndex(display.ImageLabel);
			}
			else
			{
				if(m_smallImages.ImageList.Images.Count>0)
					button.ImageIndex = m_smallImages.GetImageIndex(display.ImageLabel);
			}

			button.Selected = display.Checked;
			button.Text = display.Text;
//			if(display.Checked)
//				button.Text = button.Text + " (X)";

			if(!display.Enabled)
				button.Text = button.Text + " NA";


			//note that this sidebar library we are using does not provide click events on individual items.
			//So we cannot wire them up here.
			band.Items.Add (button);
		}