I got a little question that causes me some problems, I am sure its not difficult, but for me right now it is.
I got two classes, one main-class and the class of my winform.
foreach (EA.Element theElement in myPackage.Elements) { foreach (EA.Attribute theAttribute in theElement.Attributes) { attribute = theAttribute.Name.ToString(); value = theAttribute.Default.ToString(); AddAttributeValue(attribute, value); } } Here I get the values and try to write them into an Datagrid, via this method:
private void AddAttributeValue(string attribute, string value) { int n = dataGridView1.Rows.Add(); dataGridView1.Rows[n].Cells[0].Value = attribute; dataGridView1.Rows[n].Cells[1].Value = value; } But the compiler tells me, that AddAttributeValue is not in the current context and I cannot call it. I got the values I want, but cannot pass them over to the form. I know it sounds trivial, but I just can't get it.