Added a context menu to the plot which allows the user to configure the time window for plotting.

This commit is contained in:
Michael Möller
2012-01-01 15:46:42 +00:00
parent a0b8e326eb
commit 0b184bb65e
3 changed files with 62 additions and 25 deletions

View File

@@ -63,6 +63,7 @@ namespace OpenHardwareMonitor.GUI {
private UpdateVisitor updateVisitor = new UpdateVisitor();
private SensorGadget gadget;
private Form plotForm;
private PlotPanel plotPanel;
private UserOption showHiddenSensors;
private UserOption showPlot;
@@ -109,7 +110,10 @@ namespace OpenHardwareMonitor.GUI {
this.Font = SystemFonts.MessageBoxFont;
treeView.Font = SystemFonts.MessageBoxFont;
plotPanel.Font = SystemFonts.MessageBoxFont;
plotPanel = new PlotPanel(settings);
plotPanel.Font = SystemFonts.MessageBoxFont;
plotPanel.Dock = DockStyle.Fill;
nodeCheckBox.IsVisibleValueNeeded += nodeCheckBox_IsVisibleValueNeeded;
nodeCheckBox.CheckStateChanged += UpdatePlotSelection;