|
// (c) 2003-2005 Datron, Inc. All rights reserved. http://www.blix.net
using System;
namespace freeBlix
{
public class RectangleCycle
{
#region Fields
private RectangleBeforeLocationChangedDelegate _BeforeLocationChangedDelegate;
private RectangleAfterLocationChangedDelegate _AfterLocationChangedDelegate;
private RectangleBeforeSizeChangedDelegate _BeforeSizeChangedDelegate;
private RectangleAfterSizeChangedDelegate _AfterSizeChangedDelegate;
#endregion
#region BeforeLocationChanged
#region Trigger BeforeLocationChanged
public void TriggerBeforeLocationChanged(Rectangle aRectangle)
{
if (_BeforeLocationChangedDelegate != null)
_BeforeLocationChangedDelegate(aRectangle);
}
#endregion
#region event BeforeLocationChanged
public event RectangleBeforeLocationChangedDelegate BeforeLocationChanged
{
add
{
_BeforeLocationChangedDelegate = (RectangleBeforeLocationChangedDelegate) Delegator.Add(_BeforeLocationChangedDelegate, value);
}
remove
{
_BeforeLocationChangedDelegate = (RectangleBeforeLocationChangedDelegate) Delegator.Remove(_BeforeLocationChangedDelegate, value);
}
}
#endregion
#endregion
#region AfterLocationChanged
#region Trigger AfterLocationChanged
public void TriggerAfterLocationChanged(Rectangle aRectangle)
{
if (_AfterLocationChangedDelegate != null)
_AfterLocationChangedDelegate(aRectangle);
}
#endregion
#region event AfterLocationChanged
public event RectangleAfterLocationChangedDelegate AfterLocationChanged
{
add
{
_AfterLocationChangedDelegate = (RectangleAfterLocationChangedDelegate) Delegator.Add(_AfterLocationChangedDelegate, value);
}
remove
{
_AfterLocationChangedDelegate = (RectangleAfterLocationChangedDelegate) Delegator.Remove(_AfterLocationChangedDelegate, value);
}
}
#endregion
#endregion
#region BeforeSizeChanged
#region Trigger BeforeSizeChanged
public void TriggerBeforeSizeChanged(Rectangle aRectangle)
{
if (_BeforeSizeChangedDelegate != null)
_BeforeSizeChangedDelegate(aRectangle);
}
#endregion
#region event BeforeSizeChanged
public event RectangleBeforeSizeChangedDelegate BeforeSizeChanged
{
add
{
_BeforeSizeChangedDelegate = (RectangleBeforeSizeChangedDelegate) Delegator.Add(_BeforeSizeChangedDelegate, value);
}
remove
{
_BeforeSizeChangedDelegate = (RectangleBeforeSizeChangedDelegate) Delegator.Remove(_BeforeSizeChangedDelegate, value);
}
}
#endregion
#endregion
#region AfterSizeChanged
#region Trigger AfterSizeChanged
public void TriggerAfterSizeChanged(Rectangle aRectangle)
{
if (_AfterSizeChangedDelegate != null)
_AfterSizeChangedDelegate(aRectangle);
}
#endregion
#region event AfterSizeChanged
public event RectangleAfterSizeChangedDelegate AfterSizeChanged
{
add
{
_AfterSizeChangedDelegate = (RectangleAfterSizeChangedDelegate) Delegator.Add(_AfterSizeChangedDelegate, value);
}
remove
{
_AfterSizeChangedDelegate = (RectangleAfterSizeChangedDelegate) Delegator.Remove(_AfterSizeChangedDelegate, value);
}
}
#endregion
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I read
About Face by Alan Cooper in 1995 and immediately recognized it as a founding document for the future of software. I also recognized we had a long, long way to go - and yes, even with the advent of iOS, we are still not there yet.
At my company, Sagerion (say-jair-ee-on), we can take a look at your planned or existing software and suggest ways of making it better - lots better. We can develop down-to-the-pixel blueprints showing exactly what our suggestions mean. We can help manage on-going development to make sure the top-notch user-experience we've suggested really does get built. Now, honestly, how often have you ever seen all those things happen?
You may or may not already have great development going on - but what does that matter if you don't have great design driving it?
Feel free to contact me at
tom@sagerion.com, I would love to hear about your next ground-breaking project.