[mono-android] Passing a class between classes
Paul F. Johnson
paul at all-the-johnsons.co.uk
Mon Nov 21 13:51:24 EST 2011
Hi,
I have a standard winform which looks like this (in part)
namespace marker
{
public class xmlhandler : Form, Isettings
{
public xmlhandler(common data)
{
this.data = data;
xmlsetup();
}
common data;
public string path, sep, conpath, respath;
public bool group;
public int intro, meth, res, dis, addy, ci, cm, cr, cd, ca;
public int cci, ccm, ccr, ccd, cca;
public string date, cod;
public void xmlsetup()
{
path = System.Environment.CurrentDirectory;
string sep = Path.DirectorySeparatorChar.ToString();
conpath = path + string.Format("{0}configure.xml",sep);
respath = path + string.Format("{0}Resources{0}configure.xml", sep,
sep);
group = data.groups;
ci = data.intro;
cm = data.meth;
cr = data.result;
cd = data.discuss;
ca = data.addition;
cod = data.date;
}
where common is just a class containing a pile of variables.
Is this possible to do within the mono for android framework (with the
exception of finding the path) and if it is, how is it done? There
doesn't seem to be a way that I can see.
Paul
--
Vertraue mir, ich weiss, was ich mache...
More information about the Monodroid
mailing list