public bool Save() { if (options != null) { OnChanged(); SaveOldOptions(); return(xmlExtensions.Save(options)); } return(false); }
public bool Save() { if (options != null) { Changed?.Invoke(options, null); return(xmlExtensions.Save(options)); } return(false); }
/// <summary> /// 加载统计数据 /// </summary> public void LoadStatisticData() { if (File.Exists(xmlPath)) { var data = xml.ToModel(typeof(EyesTestListModel)); if (data != null) { statisticList = data as EyesTestListModel; } else { xml.Save(statisticList); } } else { xml.Save(statisticList); } }