Inheritance: System.Windows.Forms.Control
Esempio n. 1
0
		/// <summary/>
		protected virtual void Dispose(bool fDisposing)
		{
			System.Diagnostics.Debug.WriteLineIf(!fDisposing, "****** Missing Dispose() call for " + GetType().Name + ". ****** ");
			if (fDisposing && !IsDisposed)
			{
				// dispose managed and unmanaged objects
				if (m_bar != null)
					m_bar.Dispose();
			}
			m_bar = null;
			IsDisposed = true;
		}
		public OutlookBarBandCollection(OutlookBar bar)
		{
			parentBar = bar;
		}
Esempio n. 3
0
		public System.Windows.Forms.Control Init(System.Windows.Forms.Form window, IImageCollection smallImages, IImageCollection largeImages, Mediator mediator)
		{
			m_mediator = mediator;
			m_smallImages= smallImages;
			m_largeImages= largeImages;

			// Create controls
			m_bar = new OutlookBar();
			m_bar.Dock = DockStyle.Left;
			m_bar.Width = 140;

			//m_bar.ItemDropped +=(new SidebarLibrary.WinControls.OutlookBarItemDroppedHandler(TabOpened));
			m_bar.ItemClicked +=(new SidebarLibrary.WinControls.OutlookBarItemClickedHandler(OnItemClicked));
			m_bar.PropertyChanged +=(new SidebarLibrary.WinControls.OutlookBarPropertyChangedHandler(PropertyChanged));
			return m_bar;
		}