Re-Thinking C# Events

February 15th, 2009

Back when I was learning C#, I was taught a pattern for events that went something like this: public class Tribe { // For demonstration only. Please do not write code like this. public class TribesmanAddedEventArgs : EventArgs { private readonly Tribesman _tribesman; public TribesmanAddedEventArgs(Tribesman tribesman) { _tribesman = tribesman; } public Tribesman NewTribesman { get { return _tribesman; } } } public delegate void TribesmanAddedDelegate(object sender, TribesmanAddedEventArgs args); public event TribesmanAddedDelegate TribesmanAdded; private void OnTribesmanAdded(Tribesman tribesman) { if(TribesmanAdded != null) TribesmanAdded(this, new TribesmanAddedEventArgs(tribesman)); } } Can we take this any further? You bet Read More...

Ann Arbor .NET Developers Group Has New Leadership!

February 12th, 2009

Last night, the Ann Arbor .Net Developers group held annual elections, and made new director appointments.  The new leadership team is: President: Jay Harris Vice President: Scott Zischerk Secretary: Darrell Hawley Treasurer: Eric Bratton Director of Programming: Mike Woelmer Director of Membership: Dennis Burton Director of Sponsorship: Brian Genisio (me!) With my new role, I will be soliciting companies for sponsorship Read More...

Drag and Drop with Silverlight

February 10th, 2009

The Problem I have been developing with Silverlight for a few months now, and I have really been enjoying myself.  It has been the enabling technology my project and we have been extremely productive in the environment.  Unfortunately, Silverlight is still in version 2.0 and there are some missing capabilities Read More...