void InfoTipText(string method) { XmlDocument doc = new XmlDocument(); doc.Load((new FileInfo(Application.ExecutablePath)).DirectoryName + "\\Intellisense.xml"); XmlNode node = doc.SelectSingleNode("signatures/signature[@name='" + method + "']"); if (node != null) { grpOverloads = new IntellisenseGroup(); grpOverloads.Overloads = new List <IntellisenseOverload>(); // hide autolist, display infobox! SyntaxBoxControl syn = (tabDocs.SelectedTab.Controls[0] as SyntaxBoxControl); syn.AutoListVisible = false; syn.Document.InsertText("()", syn.Caret.Position.X, syn.Caret.Position.Y); syn.Caret.MoveRight(false); XmlNodeList nl = node.SelectNodes("overload"); foreach (XmlNode n in nl) { List <IntellisenseArgument> args = new List <IntellisenseArgument>(); foreach (XmlNode x in n.SelectNodes("arg")) { args.Add(new IntellisenseArgument(x.Attributes["name"].Value.ToString(), x.InnerText)); } grpOverloads.Overloads.Add(new IntellisenseOverload(node["returns"].Value, args)); } grpOverloads.Method = method; syn.InfoTipCount = grpOverloads.Overloads.Count; syn.InfoTipVisible = true; tmrInterval.Stop(); syn.AutoListVisible = false; //MessageBox.Show(node.InnerXml); } }
void InfoTipText(string method) { XmlDocument doc = new XmlDocument(); doc.Load((new FileInfo(Application.ExecutablePath)).DirectoryName + "\\Intellisense.xml"); XmlNode node = doc.SelectSingleNode("signatures/signature[@name='" + method + "']"); if (node != null) { grpOverloads = new IntellisenseGroup(); grpOverloads.Overloads = new List<IntellisenseOverload>(); // hide autolist, display infobox! SyntaxBoxControl syn = (tabDocs.SelectedTab.Controls[0] as SyntaxBoxControl); syn.AutoListVisible = false; syn.Document.InsertText("()", syn.Caret.Position.X, syn.Caret.Position.Y); syn.Caret.MoveRight(false); XmlNodeList nl = node.SelectNodes("overload"); foreach (XmlNode n in nl) { List<IntellisenseArgument> args = new List<IntellisenseArgument>(); foreach (XmlNode x in n.SelectNodes("arg")) { args.Add(new IntellisenseArgument(x.Attributes["name"].Value.ToString(), x.InnerText)); } grpOverloads.Overloads.Add(new IntellisenseOverload(node["returns"].Value, args)); } grpOverloads.Method = method; syn.InfoTipCount = grpOverloads.Overloads.Count; syn.InfoTipVisible = true; tmrInterval.Stop(); syn.AutoListVisible = false; //MessageBox.Show(node.InnerXml); } }