Refactored to fit the project coding style

This commit is contained in:
DarthAffe committed 2015-09-22 20:27:04 +02:00
1 parent 54231ec4e8
commit 02aaf24c41
3 files changed
+11 -17

No files matched your search

+1 -2
View File
@@ -1,10 +1,9 @@
using System.Drawing;
namespace CUE.NET.Devices.Keyboard.ColorBrushes
{
public interface IBrush
{
Color getColorAtPoint(Point point);
Color GetColorAtPoint(Point point);
}
}
@@ -4,33 +4,26 @@ namespace CUE.NET.Devices.Keyboard.ColorBrushes
{
public class SolidColorBrush : IBrush
{
Color color;
#region Properties & Fields
public Color Color { get; set; }
#endregion
#region Constructors
public SolidColorBrush(Color color)
{
this.color = color;
this.Color = color;
}
#endregion
#region Methods
public Color getColorAtPoint(Point point)
public Color GetColorAtPoint(Point point)
{
/* a solid color brush returns the same color no matter the point */
return this.color;
}
public Color getColor()
{
return this.color;
}
public void setColor(Color color)
{
this.color = color;
return Color; // A solid color brush returns the same color no matter the point
}
#endregion