Hi,
I'm quite new in C# programming and windows workflow foundation
I have a problem regarding a Local Communication Service question and is
like this:
I have an interface in my workflow:
[ExternalDataExchange]
public interface IHostCommunication
{
int Add(int x, int y);
}
public class Implementation : IHostCommunication
{
#region IHostCommunication Members
public int Add(int x, int y)
{
return (x + y);
}
#endregion
}
Then I set up all the properties in the CallExternalMethod Activity
In my code activity I have this code below:
private void codeActivity1_ExecuteCode(object sender, EventArgs e)
{
Console.WriteLine("Return Value was: {0}", ReturnValue); <-- INSTEAD OF
USING A CONSOLE APPLICATION, I'M USING WINFORM TO HOST THE WORKFLOW, SO
I WANT TO DISPLAY ReturnValue IN A LISTBOX THAT I HAVE IN MY FORM, CAN
SOMEONE TELL ME HOW?
}
private int x;
public int X
{
get { return x; }
set { x = value; }
}
private int y;
public int Y
{
get { return y; }
set { y = value; }
}
private int returnValue;
public int ReturnValue
{
get { return returnValue; }
set { returnValue = value; }
}
Cheers!
Claudi
*** Sent via Developersdex http://www.developersdex.com ***