[Ironruby-core] events handling

2009-10-26 Thread Ivan Porto Carrero
Hi I'm trying the following code: public class ExposingWarrior{ private readonly int _id; public event EventHandlerEventArgs OnIsExposedChanged; public bool IsExposed {get; set; } public void Explode(){ IsExposed = !IsExposed; var handler =

Re: [Ironruby-core] Events?

2008-08-15 Thread Ivan Porto Carrero
: [EMAIL PROTECTED] *On Behalf Of *Sean Clark Hess *Sent:* Thursday, August 14, 2008 1:29 PM *To:* ironruby-core@rubyforge.org *Subject:* Re: [Ironruby-core] Events? Let's say I create a class called MovieControls, that wraps some existing xaml. The xaml has several buttons, including

Re: [Ironruby-core] Events?

2008-08-15 Thread Stefan Dobrev
PROTECTED] *On Behalf Of *Sean Clark Hess *Sent:* Thursday, August 14, 2008 1:29 PM *To:* ironruby-core@rubyforge.org *Subject:* Re: [Ironruby-core] Events? Let's say I create a class called MovieControls, that wraps some existing xaml. The xaml has several buttons, including a toggle play/pause

[Ironruby-core] Events?

2008-08-14 Thread Sean Clark Hess
Hi all, Is there a built-in event system for IronRuby? I know I can handle events with button.click { }, but what if I want to dispatch my own, custom events (from a class I created myself?). I wrote my own event system, but I would prefer to use a built-in dispatch method if it exists. Thanks!

Re: [Ironruby-core] Events?

2008-08-14 Thread Tomas Matousek
: Thursday, August 14, 2008 12:04 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Events? Hi all, Is there a built-in event system for IronRuby? I know I can handle events with button.click { }, but what if I want to dispatch my own, custom events (from a class I created myself?). I wrote

Re: [Ironruby-core] Events?

2008-08-14 Thread Sean Clark Hess
Hess *Sent:* Thursday, August 14, 2008 12:04 PM *To:* ironruby-core@rubyforge.org *Subject:* [Ironruby-core] Events? Hi all, Is there a built-in event system for IronRuby? I know I can handle events with button.click { }, but what if I want to dispatch my own, custom events (from

Re: [Ironruby-core] Events?

2008-08-14 Thread Tomas Matousek
{ |handler| handler[args] } Tomas From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean Clark Hess Sent: Thursday, August 14, 2008 1:29 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Events? Let's say I create a class called MovieControls, that wraps some existing xaml

Re: [Ironruby-core] Events?

2008-08-14 Thread Sean Clark Hess
1:29 PM *To:* ironruby-core@rubyforge.org *Subject:* Re: [Ironruby-core] Events? Let's say I create a class called MovieControls, that wraps some existing xaml. The xaml has several buttons, including a toggle play/pause button, and a previous and next button. MovieControls would