Exemple #1
0
 public bool Save()
 {
     if (options != null)
     {
         OnChanged();
         SaveOldOptions();
         return(xmlExtensions.Save(options));
     }
     return(false);
 }
Exemple #2
0
        public bool Save()
        {
            if (options != null)
            {
                Changed?.Invoke(options, null);

                return(xmlExtensions.Save(options));
            }
            return(false);
        }
Exemple #3
0
 /// <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);
     }
 }