summaryrefslogtreecommitdiff
path: root/grapher/Form1.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-10-08 22:53:31 -0400
committera1xd <[email protected]>2020-10-08 22:53:31 -0400
commita44294e7e689e43417323d6b1684f7462d113cb1 (patch)
treee51f425d3f575788fb898bdb05c934325c1b1630 /grapher/Form1.cs
parentFollow full C# convention (diff)
downloadrawaccel-a44294e7e689e43417323d6b1684f7462d113cb1.tar.xz
rawaccel-a44294e7e689e43417323d6b1684f7462d113cb1.zip
improve comments, variable names
Diffstat (limited to 'grapher/Form1.cs')
-rw-r--r--grapher/Form1.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/grapher/Form1.cs b/grapher/Form1.cs
index a0d2fae..446618b 100644
--- a/grapher/Form1.cs
+++ b/grapher/Form1.cs
@@ -157,20 +157,20 @@ namespace grapher
public void ResetAutoScroll()
{
- panel2.AutoScrollPosition = Constants.Origin;
+ chartsPanel.AutoScrollPosition = Constants.Origin;
}
public void DoResize()
{
ResetAutoScroll();
- var wa = Screen.PrimaryScreen.WorkingArea;
- var pref2 = panel2.GetPreferredSize(Constants.MaxSize);
+ var workingArea = Screen.PrimaryScreen.WorkingArea;
+ var chartsPreferredSize = chartsPanel.GetPreferredSize(Constants.MaxSize);
Size = new Size
{
- Width = Math.Min(wa.Width - Location.X, panel1.Size.Width + pref2.Width),
- Height = Math.Min(wa.Height - Location.Y, pref2.Height + 48)
+ Width = Math.Min(workingArea.Width - Location.X, optionsPanel.Size.Width + chartsPreferredSize.Width),
+ Height = Math.Min(workingArea.Height - Location.Y, chartsPreferredSize.Height + 48)
};
}
@@ -181,7 +181,7 @@ namespace grapher
#endregion Method
- private void panel1_Paint(object sender, PaintEventArgs e)
+ private void optionsPanel_Paint(object sender, PaintEventArgs e)
{
}