C# Class XCore.SidebarAdapter

Creates a SidebarAdapter.
Inheritance: XCore.AdapterBase, IxCoreColleague
Datei anzeigen Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
m_bar OutlookBar
m_largeImages IImageCollection
m_mediator XCore.Mediator
m_smallImages IImageCollection

Public Methods

Method Description
CreateUIForChoiceGroup ( XCore.ChoiceGroup group ) : void
CreateUIForChoiceGroupCollection ( XCore.ChoiceGroupCollection groupCollection ) : void
Dispose ( ) : void
FinishInit ( ) : void

Do anything that is needed after all of the other widgets have been Initialize.

Init ( System window, IImageCollection smallImages, IImageCollection largeImages, XCore.Mediator mediator ) : Control
OnItemClicked ( OutlookBarBand band, OutlookBarItem item ) : void
OnTreeNodeSelected ( object sender, TreeViewEventArgs arguments ) : void
PersistLayout ( ) : void

store the location/settings of various widgets so that we can restore them next time

PropertyChanged ( OutlookBarBand band, OutlookBarProperty property ) : void

The OutlookBar calls this when one of its properties changes, specifically, a different band is opened.

SidebarAdapter ( ) : System

Initializes a new instance of the IUIAdapter class.

TabOpened ( OutlookBarBand band, OutlookBarItem item ) : void

Protected Methods

Method Description
Dispose ( bool fDisposing ) : void
FillTreeNodes ( TreeNodeCollection nodes, XCore.ChoiceGroup group ) : void

the first time this is called, the group will be the band. It will then be called recursively for each note that contains other nodes.

MakeButton ( OutlookBarBand band, XCore.ChoiceBase control ) : void
MakeTreeNode ( XCore.ChoiceRelatedClass item ) : TreeNode

Private Methods

Method Description
MakeTree ( XCore.ChoiceGroupCollection groupCollection, string label, OutlookBarBand &band ) : void
OnIdle ( ) : void

Method Details

CreateUIForChoiceGroup() public method

public CreateUIForChoiceGroup ( XCore.ChoiceGroup group ) : void
group XCore.ChoiceGroup
return void

CreateUIForChoiceGroupCollection() public method

public CreateUIForChoiceGroupCollection ( XCore.ChoiceGroupCollection groupCollection ) : void
groupCollection XCore.ChoiceGroupCollection
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool fDisposing ) : void
fDisposing bool
return void

FillTreeNodes() protected method

the first time this is called, the group will be the band. It will then be called recursively for each note that contains other nodes.
protected FillTreeNodes ( TreeNodeCollection nodes, XCore.ChoiceGroup group ) : void
nodes System.Windows.Forms.TreeNodeCollection
group XCore.ChoiceGroup
return void

FinishInit() public method

Do anything that is needed after all of the other widgets have been Initialize.
public FinishInit ( ) : void
return void

Init() public method

public Init ( System window, IImageCollection smallImages, IImageCollection largeImages, XCore.Mediator mediator ) : Control
window System
smallImages IImageCollection
largeImages IImageCollection
mediator XCore.Mediator
return System.Windows.Forms.Control

MakeButton() protected method

protected MakeButton ( OutlookBarBand band, XCore.ChoiceBase control ) : void
band OutlookBarBand
control XCore.ChoiceBase
return void

MakeTreeNode() protected method

protected MakeTreeNode ( XCore.ChoiceRelatedClass item ) : TreeNode
item XCore.ChoiceRelatedClass
return System.Windows.Forms.TreeNode

OnItemClicked() public method

public OnItemClicked ( OutlookBarBand band, OutlookBarItem item ) : void
band OutlookBarBand
item OutlookBarItem
return void

OnTreeNodeSelected() public method

public OnTreeNodeSelected ( object sender, TreeViewEventArgs arguments ) : void
sender object
arguments System.Windows.Forms.TreeViewEventArgs
return void

PersistLayout() public method

store the location/settings of various widgets so that we can restore them next time
public PersistLayout ( ) : void
return void

PropertyChanged() public method

The OutlookBar calls this when one of its properties changes, specifically, a different band is opened.
public PropertyChanged ( OutlookBarBand band, OutlookBarProperty property ) : void
band OutlookBarBand
property OutlookBarProperty
return void

SidebarAdapter() public method

Initializes a new instance of the IUIAdapter class.
public SidebarAdapter ( ) : System
return System

TabOpened() public method

public TabOpened ( OutlookBarBand band, OutlookBarItem item ) : void
band OutlookBarBand
item OutlookBarItem
return void

Property Details

m_bar protected_oe property

protected OutlookBar m_bar
return OutlookBar

m_largeImages protected_oe property

protected IImageCollection m_largeImages
return IImageCollection

m_mediator protected_oe property

protected Mediator,XCore m_mediator
return XCore.Mediator

m_smallImages protected_oe property

protected IImageCollection m_smallImages
return IImageCollection