Passing parameters
Posted: Wed Oct 03, 2012 8:11 am
Question!
I have 2 screens (SCREEN1 and the TAGS SCREEN)
on the TAGS SCREEN I have the following:
void Test_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
{
.............................
}
and on the SCREEN1 I have the following:
void Button15_Click(System.Object sender, System.EventArgs e)
{
..............................
}
and the question is:
If I want to pass the value 0, 1, or 2, etc as a parameter from the SCREEN1 method to the TEST_ValueChange method on the TAGS SCREEN, which is the best way to do it?
can I do this:
void Button15_Click(System.Object sender, System.EventArgs e)
{
Test_ValueChange(xxxx, 0);
}
0,1 or 2 is the value and which will be the object sender?
Thanks for the help.
I have 2 screens (SCREEN1 and the TAGS SCREEN)
on the TAGS SCREEN I have the following:
void Test_ValueChange(System.Object sender, Neo.ApplicationFramework.Interfaces.Events.ValueChangedEventArgs e)
{
.............................
}
and on the SCREEN1 I have the following:
void Button15_Click(System.Object sender, System.EventArgs e)
{
..............................
}
and the question is:
If I want to pass the value 0, 1, or 2, etc as a parameter from the SCREEN1 method to the TEST_ValueChange method on the TAGS SCREEN, which is the best way to do it?
can I do this:
void Button15_Click(System.Object sender, System.EventArgs e)
{
Test_ValueChange(xxxx, 0);
}
0,1 or 2 is the value and which will be the object sender?
Thanks for the help.