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

Summary description for MasterListDlg.
Inheritance: System.Windows.Forms.Form, IFWDisposable
Mostrar archivo Open project: sillsdev/FieldWorks

Protected Properties

Property Type Description
components System.ComponentModel.IContainer
helpProvider System.Windows.Forms.HelpProvider
iCheckedCount int
label1 System.Windows.Forms.Label
label2 System.Windows.Forms.Label
label3 System.Windows.Forms.Label
linkLabel1 System.Windows.Forms.LinkLabel
m_bnHelp System.Windows.Forms.Button
m_btnCancel System.Windows.Forms.Button
m_btnOK System.Windows.Forms.Button
m_cache SIL.FieldWorks.FDO.FdoCache
m_featureList IFdoOwningCollection
m_featureSystem IFsFeatureSystem
m_helpTopicProvider IHelpTopicProvider
m_imageList System.Windows.Forms.ImageList
m_imageListPictures System.Windows.Forms.ImageList
m_launchedFromInsertMenu bool
m_mediator XCore.Mediator
m_rtbDescription System.Windows.Forms.RichTextBox
m_sClassName string
m_sWindowKeyLocation string
m_sWindowKeySize string
m_selFeatDefn IFsFeatDefn
m_skipEvents bool
m_tvMasterList SIL.FieldWorks.LexText.Controls.MGA.GlossListTreeView
pictureBox1 System.Windows.Forms.PictureBox
s_helpTopic string

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.

SetDlginfo ( IFsFeatureSystem featSys, XCore.Mediator mediator, bool launchedFromInsertMenu ) : void

SetDlginfo ( IFsFeatureSystem featSys, XCore.Mediator mediator, bool launchedFromInsertMenu, string sWindowKey, string sXmlFile ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

DoExtraInit ( ) : void
DoFinalAdjustment ( TreeNode treeNode ) : void
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.

linkLabel1_LinkClicked ( object sender, System e ) : void
m_bnHelp_Click ( object sender, EventArgs e ) : void
m_tvMasterList_AfterCheck ( object sender, System e ) : void
m_tvMasterList_AfterSelect ( object sender, TreeViewEventArgs e ) : void
m_tvMasterList_BeforeCheck ( object sender, System e ) : void

Cancel, if it is already in the database.

Private Methods

Method Description
AdjustNode ( TreeNode treeNode ) : void
AdjustNodes ( TreeNodeCollection treeNodes ) : void
FoundChosenItemNotInDatabase ( TreeNodeCollection nodes ) : bool
HasChosenItemNotInDatabase ( TreeNode node ) : bool
InitDlg ( string className, SIL.FieldWorks.LexText.Controls.MGA.GlossListTreeView treeView ) : void
InitializeComponent ( ) : void
LoadMasterFeatures ( string sXmlFile ) : void
MasterListDlg ( ) : System
MasterListDlg ( string className, SIL.FieldWorks.LexText.Controls.MGA.GlossListTreeView treeView ) : System
MasterListDlg_Closing ( object sender, System e ) : void

If OK, then add relevant inflection features to DB.

ResetOKBtnEnable ( ) : void
ResetWindowLocationAndSize ( ) : void
UpdateAllCheckedItems ( TreeNodeCollection nodes ) : 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

DoExtraInit() protected method

protected DoExtraInit ( ) : void
return void

DoFinalAdjustment() protected method

protected DoFinalAdjustment ( TreeNode treeNode ) : void
treeNode System.Windows.Forms.TreeNode
return void

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 ( IFsFeatureSystem featSys, XCore.Mediator mediator, bool launchedFromInsertMenu ) : void
featSys IFsFeatureSystem
mediator XCore.Mediator
launchedFromInsertMenu bool
return void

SetDlginfo() public method

public SetDlginfo ( IFsFeatureSystem featSys, XCore.Mediator mediator, bool launchedFromInsertMenu, string sWindowKey, string sXmlFile ) : void
featSys IFsFeatureSystem
mediator XCore.Mediator
launchedFromInsertMenu bool
sWindowKey string used to store location and size of dialog window
sXmlFile string file containing the XML form of the gloss list
return void

linkLabel1_LinkClicked() protected method

protected linkLabel1_LinkClicked ( object sender, System e ) : void
sender object
e System
return void

m_bnHelp_Click() protected method

protected m_bnHelp_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

m_tvMasterList_AfterCheck() protected method

protected m_tvMasterList_AfterCheck ( object sender, System e ) : void
sender object
e System
return void

m_tvMasterList_AfterSelect() protected method

protected m_tvMasterList_AfterSelect ( object sender, TreeViewEventArgs e ) : void
sender object
e System.Windows.Forms.TreeViewEventArgs
return void

m_tvMasterList_BeforeCheck() protected method

Cancel, if it is already in the database.
protected m_tvMasterList_BeforeCheck ( object sender, System e ) : void
sender object
e System
return void

Property Details

components protected_oe property

protected System.ComponentModel.IContainer components
return System.ComponentModel.IContainer

helpProvider protected_oe property

protected HelpProvider,System.Windows.Forms helpProvider
return System.Windows.Forms.HelpProvider

iCheckedCount protected_oe property

protected int iCheckedCount
return int

label1 protected_oe property

protected Label,System.Windows.Forms label1
return System.Windows.Forms.Label

label2 protected_oe property

protected Label,System.Windows.Forms label2
return System.Windows.Forms.Label

label3 protected_oe property

protected Label,System.Windows.Forms label3
return System.Windows.Forms.Label

linkLabel1 protected_oe property

protected LinkLabel,System.Windows.Forms linkLabel1
return System.Windows.Forms.LinkLabel

m_bnHelp protected_oe property

protected Button,System.Windows.Forms m_bnHelp
return System.Windows.Forms.Button

m_btnCancel protected_oe property

protected Button,System.Windows.Forms m_btnCancel
return System.Windows.Forms.Button

m_btnOK protected_oe property

protected Button,System.Windows.Forms m_btnOK
return System.Windows.Forms.Button

m_cache protected_oe property

protected FdoCache,SIL.FieldWorks.FDO m_cache
return SIL.FieldWorks.FDO.FdoCache

m_featureList protected_oe property

protected IFdoOwningCollection m_featureList
return IFdoOwningCollection

m_featureSystem protected_oe property

protected IFsFeatureSystem m_featureSystem
return IFsFeatureSystem

m_helpTopicProvider protected_oe property

protected IHelpTopicProvider m_helpTopicProvider
return IHelpTopicProvider

m_imageList protected_oe property

protected ImageList,System.Windows.Forms m_imageList
return System.Windows.Forms.ImageList

m_imageListPictures protected_oe property

protected ImageList,System.Windows.Forms m_imageListPictures
return System.Windows.Forms.ImageList

m_launchedFromInsertMenu protected_oe property

protected bool m_launchedFromInsertMenu
return bool

m_mediator protected_oe property

protected Mediator,XCore m_mediator
return XCore.Mediator

m_rtbDescription protected_oe property

protected RichTextBox,System.Windows.Forms m_rtbDescription
return System.Windows.Forms.RichTextBox

m_sClassName protected_oe property

protected string m_sClassName
return string

m_sWindowKeyLocation protected_oe property

protected string m_sWindowKeyLocation
return string

m_sWindowKeySize protected_oe property

protected string m_sWindowKeySize
return string

m_selFeatDefn protected_oe property

protected IFsFeatDefn m_selFeatDefn
return IFsFeatDefn

m_skipEvents protected_oe property

protected bool m_skipEvents
return bool

m_tvMasterList protected_oe property

protected GlossListTreeView,SIL.FieldWorks.LexText.Controls.MGA m_tvMasterList
return SIL.FieldWorks.LexText.Controls.MGA.GlossListTreeView

pictureBox1 protected_oe property

protected PictureBox,System.Windows.Forms pictureBox1
return System.Windows.Forms.PictureBox

s_helpTopic protected_oe property

protected string s_helpTopic
return string