C# Class SIL.FieldWorks.LexText.Controls.MasterCategoryListDlg

Summary description for MasterCategoryListDlg.
Inheritance: System.Windows.Forms.Form, IFWDisposable
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
CheckDisposed ( ) : void

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.

MasterCategoryListDlg ( ) : System
SetDlginfo ( ICmPossibilityList posList, XCore.Mediator mediator, bool launchedFromInsertMenu, IPartOfSpeech subItemOwner ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnLoad ( EventArgs e ) : void

Overridden to defeat the standard .NET behavior of adjusting size by screen resolution. That is bad for this dialog because we remember the size, and if we remember the enlarged size, it just keeps growing. If we defeat it, it may look a bit small the first time at high resolution, but at least it will stay the size the user sets.

Private Methods

Method Description
AddNode ( Set posSet, XmlNode node, TreeNodeCollection treeNodes, SIL.FieldWorks.FDO.FdoCache cache ) : void
AddNodes ( Set posSet, XmlNodeList nodeList, TreeNodeCollection treeNodes, SIL.FieldWorks.FDO.FdoCache cache ) : void
InitializeComponent ( ) : void
LoadMasterCategories ( Set posSet ) : void
MasterCategoryListDlg_Closing ( object sender, System e ) : void

If OK, then add relevant POSes to DB.

ResetOKBtnEnable ( ) : void
linkLabel1_LinkClicked ( object sender, System e ) : void
m_bnHelp_Click ( object sender, System e ) : void
m_tvMasterList_AfterCheck ( object sender, System e ) : void
m_tvMasterList_AfterCollapse ( object sender, System e ) : void
m_tvMasterList_AfterExpand ( object sender, System e ) : void
m_tvMasterList_AfterSelect ( object sender, System e ) : void
m_tvMasterList_BeforeCheck ( object sender, System e ) : void

Cancel, if it is already in the database.

m_tvMasterList_DoubleClick ( object sender, System e ) : void

Method Details

CheckDisposed() public method

Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
public CheckDisposed ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

MasterCategoryListDlg() public method

public MasterCategoryListDlg ( ) : System
return System

OnLoad() protected method

Overridden to defeat the standard .NET behavior of adjusting size by screen resolution. That is bad for this dialog because we remember the size, and if we remember the enlarged size, it just keeps growing. If we defeat it, it may look a bit small the first time at high resolution, but at least it will stay the size the user sets.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs
return void

SetDlginfo() public method

public SetDlginfo ( ICmPossibilityList posList, XCore.Mediator mediator, bool launchedFromInsertMenu, IPartOfSpeech subItemOwner ) : void
posList ICmPossibilityList
mediator XCore.Mediator
launchedFromInsertMenu bool
subItemOwner IPartOfSpeech
return void