private void disposeRadarImage() { if (_radarImage != null) { _radarImage.Stop(); this.Children.Remove(_radarImage); } _radarImage = null; }
private void loadRadarImage() { if (_radarImage == null) { _radarImage = new RadarImage(_locator); _radarImage.Visibility = System.Windows.Visibility.Visible; _radarImage.ColorTableIndex = _radar.RadarAddress.ColorTableIndex; this.Children.Add(_radarImage); } }
private void loadRadarInfo() { if (_radar.IsEnable) { loadRadarImage(); startRpc(); restartRadarImage(); } else { stopTimer(); _radarControl.Stop(); if (_radarImage != null) { this.Children.Remove(_radarImage); _radarImage.Stop(); } _radarImage = null; } }