Peter Kiers
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(strXmlDoc ument);
????????. 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
I have this methode on my main form:
private void MainForm_Load(object sender, EventArgs e)
{
ClearFormFields();
xmlDocument = new System.Xml.XmlDataDocument
xmlDocument.Load(strXmlDoc
????????. 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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
well, in short, yes with delegates but it is somewhat more complicated
ASKER
It works.
Peter
Peter
cool
ASKER
P.