Read() public method

public Read ( string ControlName ) : InformationDetails
ControlName string
return InformationDetails
コード例 #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();
                }
            }
        }
コード例 #2
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(this._xmlInfoFile);
                InformationDetails infoDet = xmlinforeader.Read(controlName);

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

                    ShowWindow();
                }
            }
        }