/// <summary>
        /// This method sets up this control
        /// </summary>
        internal void Setup(DictionaryInfo dictionaryInfo)
        {
            // call the method on the CommentDictionaryEditor
            CommentDictionaryEditor dictionaryEditor = this.MainHost.Child as CommentDictionaryEditor;

            // if the dictionaryEditor object exists
            if (dictionaryEditor != null)
            {
                // setup the control
                dictionaryEditor.Setup(dictionaryInfo);
            }
        }
Beispiel #2
0
        /// <summary>
        /// This method is used to set the delegates on the editor after they have been set on this control.
        /// </summary>
        public void SetupDelegates()
        {
            // if the child exists
            if ((this.Child != null) && (this.HasCloseFormMethod))
            {
                // attempt to cast the child as a CommentDictionaryEditor
                CommentDictionaryEditor editor = this.Child as CommentDictionaryEditor;

                // if the editor exists
                if (editor != null)
                {
                    // setup the callbacks
                    editor.CloseParentMethod    = this.CloseFormMethod;
                    editor.UpdateRegistryMethod = this.UpdateRegistryMethod;
                }
            }
        }