Link to home
Start Free TrialLog in
Avatar of Peter Kiers
Peter KiersFlag for Netherlands

asked on

Accessing a class

Hi,
I have this methode on my main form:

        private void MainForm_Load(object sender, EventArgs e)
        {
            ClearFormFields();
            xmlDocument = new System.Xml.XmlDataDocument();
            xmlDocument.Load(strXmlDocument);
            ????????. XPathFilter = "attribute::id";  <=======================

How to access the methode XPathFilter in another class from the main form.

The class looks like this:

namespace DemoCatalogue
{
    class ProdCatalogue
    {
        public string XPathFilter
        {
            get
            {
                return xpath_filter;
            }
            set
            {
                xpath_filter = value;
            }
        }

    }
}

Who can ehelp me?

Peter
ASKER CERTIFIED SOLUTION
Avatar of p_davis
p_davis

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Peter Kiers

ASKER

Are there other ways also?
P.
Avatar of p_davis
p_davis

well, in short, yes with delegates but it is somewhat more complicated
It works.

Peter
cool