I´ve two classes. Thats the first one:
namespace Working_Times.Klassen
{
class calcHours
{
//Right here i need the value of startTime from MainPage
}
}
The 2nd one is called MainPage
I´ve already tried in calcHours
MainPage mP = new MainPage();
mP.startTime = 3; //for example, if startTime was an integer
//it says: mP.startTime not available in the current context
startTime not available in the current context
Thanks a lot :) A lot of people have been answering me, the problem would be the acess. In my case, i guess, that´s not the problem. I´ve already tried to change every variable to public. Still doesen´t run. SF