using PipeGallery.Manage; using PipeGallery.Model; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; namespace PipeGallery.ViewModel { public class SoundSpeedEditViewModel : ModelBase { private ObservableCollection<SoundSpeedInfo> _soundSpeedInfos = null; public ObservableCollection<SoundSpeedInfo> SoundSpeedInfos { get { if (_soundSpeedInfos == null) { _soundSpeedInfos = new ObservableCollection<SoundSpeedInfo>(); } return _soundSpeedInfos; } set { _soundSpeedInfos = value; } } #region 单例 public SoundSpeedEditViewModel() { } private static SoundSpeedEditViewModel _instance = null; public static SoundSpeedEditViewModel Instance { get { if (_instance == null) { _instance = new SoundSpeedEditViewModel(); } return _instance; } } #endregion } }