27 Sep
I really need to think things out a little more. Last night I’m working on Meshwork and doing the mouse eventhandlers for the networkmap in windows and the code looked something like this:
private static FileFind.Meshwork.MouseEventArgs SetMeshworkMouseButtons(System.Windows.Forms.MouseEventArgs e)
{
FileFind.Meshwork.MouseEventArgs ee = new FileFind.Meshwork.MouseEventArgs();
if(e.Button == System.Windows.Forms.MouseButtons.Left)
{
ee.Button = System.Windows.Forms.MouseButtons.Left;
}
...
return ee;
}
And I get compile erros. Hrmm I wonder why. Instead of looking at that and thinking about it. I give sigh and tell Eric “Damn compile errors hooking up the mouseevents. ‘Can not convert System.Windows.Forms.MouseButton to FileFind.Meshwork.MouseButton are you missing a cast?’. WTF?”
Well, of course the answer is obvious. Sure it was 2 a.m. again. But.. damn Rev… engage brain!
(Note to self: Never give this site url to potential employers.)
Leave a reply