|
// (c) 2003-2005 Datron, Inc. All rights reserved. http://www.blix.net
namespace freeBlix
{
public abstract class Control: IBounds, IControlState
{
#region Control()
public Control()
{
}
#endregion
#region GetBounds
protected abstract Bounds GetBounds();
#endregion
#region GetState
protected abstract ControlState GetState();
#endregion
#region Paint
public virtual void Paint(Graphics aGraphics)
{
}
#endregion
#region Copy
public virtual void Copy(Control aControl)
{
GetBounds().Copy(aControl.GetBounds());
GetState().Copy(aControl.GetState());
}
#endregion
#region Clone
public Control Clone()
{
Control clone = (Control) System.Activator.CreateInstance(GetType());
clone.Copy(this);
return clone;
}
#endregion
#region State
public ControlState State
{
get
{
return GetState();
}
}
#endregion
#region IBounds
Bounds IBounds.Bounds
{
get
{
return GetBounds();
}
}
#endregion
#region IControlState
ControlState IControlState.State
{
get
{
return GetState();
}
}
#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.