I couldn't attach the specified file, as the forum would give me an
Application Error, will try to send to Shay directly..
Please feel free to direct message me if anyone else comes across this
and wants a copy of the file.
Otherwise, I'd suggest a better resource for writing windows apps with
Shay Friedman wrote:
> Hi there,
>
> I know that I can register and handle .Net events in IronRuby in the
> following way:
> klass.some_event { |sender, args| puts "Hello!" }
>
> Is this the only way of doing so or are there more ways?
>
> Thanks!
> Shay.
>
> Shay Fr
: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] .Net Events in IR
Quite similarly you can send a Proc as the event value:
http://github.com/thbar/magic/blob/fd51bcd6f4c713fdb8b4bbb60b1c18ca84804c3a/lib/magic/instance_creator.rb#L50
Hth,
-- Thibaut
Le 11 juil. 2009 à 17:17, Shay Friedman a
Quite similarly you can send a Proc as the event value:
http://github.com/thbar/magic/blob/fd51bcd6f4c713fdb8b4bbb60b1c18ca84804c3a/lib/magic/instance_creator.rb#L50
Hth,
-- Thibaut
Le 11 juil. 2009 à 17:17, Shay Friedman a
écrit :
Hi there,
I know that I can register and handle .Net ev
Hi there,
I know that I can register and handle .Net events in IronRuby in the
following way:
klass.some_event { |sender, args| puts "Hello!" }
Is this the only way of doing so or are there more ways?
Thanks!
Shay.
Shay Friedman
http://www.ironshay.com
Follow me: htt