private void Write137_VirtualToolTip(string n, string ns, VirtualToolTip o, bool isNullable, bool needType) { if (o == null) { if (isNullable) { base.WriteNullTagLiteral(n, ns); } } else { if (!needType && (o.GetType() != typeof(VirtualToolTip))) { throw base.CreateUnknownTypeException(o); } base.WriteStartElement(n, ns, o, false, null); if (needType) { base.WriteXsiType("VirtualToolTip", ""); } base.WriteEndElement(o); } }
private void imgSourceIcon_MouseHover(object sender, EventArgs e) { if (Settings.Default.ShowItemToolTips && (Form.ActiveForm == this)) { Control control = (Control) sender; IVirtualItemUI tag = control.Tag as IVirtualItemUI; if (tag != null) { if (this.ToolTip == null) { this.ToolTip = new VirtualToolTip(); } this.ToolTip.ShowTooltip(tag); } } }
private VirtualToolTip Read137_VirtualToolTip(bool isNullable, bool checkType) { XmlQualifiedName type = checkType ? base.GetXsiType() : null; bool flag = false; if (isNullable) { flag = base.ReadNull(); } if ((checkType && (type != null)) && ((type.Name != this.id94_VirtualToolTip) || (type.Namespace != this.id2_Item))) { throw base.CreateUnknownTypeException(type); } if (flag) { return null; } VirtualToolTip o = new VirtualToolTip(); while (base.Reader.MoveToNextAttribute()) { if (!base.IsXmlnsAttribute(base.Reader.Name)) { base.UnknownNode(o); } } base.Reader.MoveToElement(); if (base.Reader.IsEmptyElement) { base.Reader.Skip(); return o; } base.Reader.ReadStartElement(); base.Reader.MoveToContent(); int whileIterations = 0; int readerCount = base.ReaderCount; while ((base.Reader.NodeType != XmlNodeType.EndElement) && (base.Reader.NodeType != XmlNodeType.None)) { if (base.Reader.NodeType == XmlNodeType.Element) { base.UnknownNode(o, ""); } else { base.UnknownNode(o, ""); } base.Reader.MoveToContent(); base.CheckReaderCount(ref whileIterations, ref readerCount); } base.ReadEndElement(); return o; }