Ecco un (umilissimo e stupido) esempio di codice
public partial class ConsoleWrite: Activity
{
private string _message;
public string Message {
set { _message = value; }
get { return _message; }
}
private bool _nl;
public bool NewLine {
set { _nl = value; }
get { return _nl; }
}
public ConsoleWrite()
{
InitializeComponent();
}
protected override ActivityExecutionStatus
Execute(ActivityExecutionContext executionContext)
{
Console.Write(Message);
if (NewLine) Console.WriteLine();
return base.Execute(executionContext);
}
}
No comments:
Post a Comment