我如何在调用位置获取从事件处理程序返回的值?我想做的是这样的
"" int a = timer.Elapsed += new ElapsedEventHandler((sender, e) =>
on_time_event(sender, e, draw, shoul_l)); ""
timer_start = true;
timer.Interval = 2000;
timer.Start();
timer.Elapsed += new ElapsedEventHandler((sender, e) =>
on_time_event(sender, e, draw, shoul_l));
private int on_time_event(object sender, ElapsedEventArgs e,
DrawingContext dcrt, System.Windows.Point Shoudery_lefty)
{
.
.
.
.
return a_value;
}