public System.Windows.Forms.Control Init(System.Windows.Forms.Form window, ImageCollection smallImages, ImageCollection largeImages, Mediator mediator) { m_window = window; m_smallImages = smallImages; m_largeImages = largeImages; m_menuBar = new CommandBar(CommandBarStyle.Menu); return(null); //this is not available yet. caller should call GetCommandBarManager() after CreateUIForChoiceGroupCollection() is called }
public System.Windows.Forms.Control Init(System.Windows.Forms.Form window, ImageCollection smallImages, ImageCollection 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); }
/// <summary> /// Initializes the adapter. /// </summary> /// <param name="window">The main form.</param> /// <param name="smallImages">Collection of small images.</param> /// <param name="largeImages">Collection of large images.</param> /// <param name="mediator">XCore Mediator.</param> /// <returns>A Control for use by client.</returns> public virtual System.Windows.Forms.Control Init(System.Windows.Forms.Form window, ImageCollection smallImages, ImageCollection largeImages, Mediator mediator) { m_window = window; m_smallImages = smallImages; m_largeImages = largeImages; m_mediator = mediator; if (this is IxCoreColleague) { ((IxCoreColleague)this).Init(mediator, null /*I suppose we could get these to the adapter if someone needs that someday*/); } return(MyControl); }