Esempio n. 1
0
        private void c_MouseHover(object sender, EventArgs e)
        {
            Type         t      = sender.GetType();
            PropertyInfo piName = t.GetProperty("Name");

            if (piName != null)
            {
                string controlName = piName.GetValue(sender, null).ToString();

                XMLInformationReader xmlinforeader = new XMLInformationReader(_xmlInfoFile);
                InformationDetails   infoDet       = xmlinforeader.Read(controlName);

                if (infoDet != null)
                {
                    lblTitle.Text            = infoDet.Title;
                    lblShortDescription.Text = infoDet.ShortDescription;
                    lblInfo.Text             = infoDet.Information;

                    ShowWindow();
                }
            }
        }
        private void c_MouseHover(object sender, EventArgs e)
        {
            Type t = sender.GetType();
            PropertyInfo piName = t.GetProperty("Name");

            if (piName != null)
            {
                string controlName = piName.GetValue(sender, null).ToString();

                XMLInformationReader xmlinforeader = new XMLInformationReader(this._xmlInfoFile);
                InformationDetails infoDet = xmlinforeader.Read(controlName);

                if (infoDet != null)
                {
                    lblTitle.Text = infoDet.Title;
                    lblShortDescription.Text = infoDet.ShortDescription;
                    lblInfo.Text = infoDet.Information;

                    ShowWindow();
                }
            }
        }