GUI/MainForm.cs
changeset 110 411b72b73d8f
parent 86 b4f0f206173d
child 111 2b8a8cf92c3a
     1.1 --- a/GUI/MainForm.cs	Thu May 06 19:20:38 2010 +0000
     1.2 +++ b/GUI/MainForm.cs	Sun May 09 16:22:13 2010 +0000
     1.3 @@ -60,6 +60,8 @@
     1.4      private SensorSystemTray sensorSystemTray;
     1.5      private NotifyIcon notifyIcon;
     1.6      private StartupManager startupManager = new StartupManager();
     1.7 +    private SensorProperties sensorProperties = new SensorProperties();
     1.8 +    private UpdateVisitor updateVisitor = new UpdateVisitor();
     1.9  
    1.10      public MainForm() {      
    1.11        InitializeComponent();
    1.12 @@ -241,7 +243,7 @@
    1.13      }
    1.14  
    1.15      private void timer_Tick(object sender, EventArgs e) {
    1.16 -      computer.Update();  
    1.17 +      computer.Accept(updateVisitor);
    1.18        treeView.Invalidate();
    1.19        plotPanel.Invalidate();
    1.20        sensorSystemTray.Redraw();