public void UpdateBreakpoint(NuGenIMultiLine codeObject, NuGenBreakpointInformation breakpointInformation)
        {
            NuGenCodeDisplayer codeDisplayer = FindCodeDisplayer(codeObject);

            if (codeDisplayer != null)
            {
                codeDisplayer.UpdateBreakpoint(breakpointInformation);
            }
        }
        private NuGenCodeDisplayer FindCodeDisplayer(NuGenIMultiLine codeObject)
        {
            NuGenCodeDisplayer result = null;

            foreach (NuGenCodeDisplayer displayer in codeDisplayers)
            {
                if (displayer.CodeObject == codeObject)
                {
                    result = displayer;
                    break;
                }
            }

            return(result);
        }
        public void ShowCodeObject(NuGenIMultiLine codeObject, NuGenCodeObjectDisplayOptions options)
        {
            NuGenCodeDisplayer codeDisplayer = FindCodeDisplayer(codeObject);

            if (codeDisplayer == null)
            {
                NuGenCodeEditorForm codeEditorForm = new NuGenCodeEditorForm();
                codeEditorForm.ProjectExplorer = this;
                //PETETODO:  Why does this crash?
                //codeEditorForm.UpdateFont(Settings.Instance.CodeEditorFont.Font);
                codeEditorForm.SetWordWrap(WordWrap);

                NuGenCodeDisplayer displayer = new NuGenCodeDisplayer(codeEditorAdded, codeObject, codeEditorForm);
                codeDisplayers.Add(displayer);
                displayer.ShowCodeObject(options);
                displayer.Window.ProjectExplorer = this;
            }
            else
            {
                codeDisplayer.ShowCodeObject(options);
                codeDisplayer.Window.ProjectExplorer = this;
            }
        }
		public void ShowCodeObject(NuGenIMultiLine codeObject, NuGenCodeObjectDisplayOptions options)
		{
			NuGenCodeDisplayer codeDisplayer = FindCodeDisplayer(codeObject);

			if (codeDisplayer == null)
			{
				NuGenCodeEditorForm codeEditorForm = new NuGenCodeEditorForm();
                codeEditorForm.ProjectExplorer = this;
                //PETETODO:  Why does this crash?
				//codeEditorForm.UpdateFont(Settings.Instance.CodeEditorFont.Font);
				codeEditorForm.SetWordWrap(WordWrap);

                NuGenCodeDisplayer displayer = new NuGenCodeDisplayer(codeEditorAdded, codeObject, codeEditorForm);
				codeDisplayers.Add(displayer);
				displayer.ShowCodeObject(options);
                displayer.Window.ProjectExplorer = this;
			}
			else
			{
				codeDisplayer.ShowCodeObject(options);
                codeDisplayer.Window.ProjectExplorer = this;
			}
		}