|
// (c) 2003-2005 Datron, Inc. All rights reserved. http://www.blix.net
using System;
namespace freeBlix
{
public class LineIndicator: Control
{
#region Fields
private Rectangle _Bounds;
private System.Drawing.Color _Color;
private BasicState _BasicState;
#endregion
#region LineIndicator()
public LineIndicator()
{
_Bounds = new Rectangle(0, 0, 0, 0);
_BasicState = new BasicState(this);
}
#endregion
#region GetBounds
protected override Bounds GetBounds()
{
return _Bounds;
}
#endregion
#region GetState
protected override ControlState GetState()
{
return _BasicState;
}
#endregion
#region Copy
public override void Copy(Control aSource)
{
base.Copy(aSource);
LineIndicator source = (LineIndicator) aSource;
_Color = source._Color;
}
#endregion
#region Paint
public override void Paint(Graphics aGraphics)
{
System.Drawing.Pen pen = new System.Drawing.Pen(_Color);
aGraphics.DrawLine(pen, _Bounds.TopLeft, _Bounds.BottomRight);
}
#endregion
#region Bounds
public Rectangle Bounds
{
get
{
return _Bounds;
}
set
{
_Bounds.Copy(value);
}
}
#endregion
#region Color
public System.Drawing.Color Color
{
get
{
return _Color;
}
set
{
_Color = value;
}
}
#endregion
#region Visible
public bool Visible
{
get
{
return _BasicState.Visible;
}
set
{
_BasicState.Visible = value;
}
}
#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.