//takes timing device and sets it to be able to be used private void SetTimingDevice(TimingDevice timeDevice) { if (this.timingDevice != null) { this.timingDevice.Dispose(); } //set TimingDevice this.timingDevice = timeDevice; //set RaceID so the device knows what race to update in DB timingDevice.SetRaceID(raceData.RaceID); //listen for change to update Table timingDevice.AddListener(this); //if we are using a timer with internal clock, report the time if (!(timingDevice is TimeMachineTimer)) { panelClock.Visible = true; } else { panelClock.Visible = false; } }
//takes timing device and sets it to be able to be used private void SetTimingDevice(TimingDevice timeDevice) { if (this.timingDevice != null) this.timingDevice.Dispose(); //set TimingDevice this.timingDevice = timeDevice; //set RaceID so the device knows what race to update in DB timingDevice.SetRaceID(raceData.RaceID); //listen for change to update Table timingDevice.AddListener(this); //if we are using a timer with internal clock, report the time if (!(timingDevice is TimeMachineTimer)) { panelClock.Visible = true; } else panelClock.Visible = false; }