Skip to content

Commit

Permalink
Minor Privacy Fix
Browse files Browse the repository at this point in the history
- Changed internal vars to protected vars
- Maded InitializeGraph() a protected method
  • Loading branch information
Deantwo committed Jun 22, 2014
1 parent e6161b6 commit 245611d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions HGraphics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public StatisticsGraph(Panel panel, Graphics graphObj, int yTop, int yBottom = 0
InitializeGraph();
}

public void InitializeGraph()
protected void InitializeGraph()
{
_edgeTop = 15;
_edgeRight = _panel.Width - 10;
Expand All @@ -59,17 +59,17 @@ public void InitializeGraph()
_yZero = _edgeBottom + _yBottom * _intervalY;
}

internal Panel _panel;
internal Graphics _graphObj;
internal int _yTop;
internal int _yBottom;
internal int _edgeTop;
internal int _edgeRight;
internal int _edgeBottom;
internal int _edgeLeft;
internal float _intervalX;
internal float _intervalY;
internal float _yZero;
protected Panel _panel;
protected Graphics _graphObj;
protected int _yTop;
protected int _yBottom;
protected int _edgeTop;
protected int _edgeRight;
protected int _edgeBottom;
protected int _edgeLeft;
protected float _intervalX;
protected float _intervalY;
protected float _yZero;

public void DrawGraphAxles(string xAxleName, string yAxleName)
{
Expand Down

0 comments on commit 245611d

Please sign in to comment.