Esempio n. 1
0
        private void Init()
        {
            WordWrap                 = false;
            AcceptsTab               = true;
            Font                     = new Font("Tahoma", 9.5f);
            AutocompleteBox          = new ListBox();
            AutocompleteBox.Parent   = this;
            AutocompleteBox.KeyUp   += Autocomplete_OnKeyUp;
            AutocompleteBox.KeyDown += Autocomplete_OnKeyDown;
            AutocompleteBox.Visible  = false;
            ITSToolTip               = new ITSToolTip();
            this.commandDictionary   = Runtime.commandDictionary;

            ITSToolTip.RichTextBox = this;
            EventDescriptions      = new TooltipDictionary();
            ITSToolTip.Dictionary  = EventDescriptions;

            foreach (CommandInfo cd in Runtime.commandDictionary)
            {
                if (!String.IsNullOrEmpty(cd.EventDescription))
                {
                    EventDescriptions.Add(cd.Name, cd.EventDescription);
                }
            }
        }
Esempio n. 2
0
        private void Init()
        {
            WordWrap = false;
            AcceptsTab = true;
            Font = new Font("Tahoma", 9.5f);
            AutocompleteBox = new ListBox();
            AutocompleteBox.Parent = this;
            AutocompleteBox.KeyUp += Autocomplete_OnKeyUp;
            AutocompleteBox.KeyDown += Autocomplete_OnKeyDown;
            AutocompleteBox.Visible = false;
            ITSToolTip = new ITSToolTip();
            this.commandDictionary = Runtime.commandDictionary;

            ITSToolTip.RichTextBox = this;
            EventDescriptions = new TooltipDictionary();
            ITSToolTip.Dictionary = EventDescriptions;

            foreach (CommandInfo cd in Runtime.commandDictionary)
                if (!String.IsNullOrEmpty(cd.EventDescription))
                    EventDescriptions.Add(cd.Name, cd.EventDescription);
        }