You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Collections.ObjectModel;
- using BPA.Helper;
-
-
- namespace BPASmartClient.CustomResource.Pages.Model
- {
- public class ReportHelper
- {
- public ObservableCollection<ReportBase> Reports { get; set; } = new ObservableCollection<ReportBase>();
-
- public void Add(ReportBase report)
- {
- Reports.Add(report);
- }
-
- public void Save(string name)
- {
- DataRecord record = new DataRecord();
- record.Save(Reports, name);
- }
-
- public void Dispos()
- {
- Reports.Clear();
- }
-
- public ObservableCollection<ReportBase> GetData(string path)
- {
- DataRecord record = new DataRecord();
- return record.Read<ObservableCollection<ReportBase>>(path);
- }
- }
-
- //public class ReportHelper
- //{
-
- // private volatile static ReportHelper _Instance;
- // public static ReportHelper GetInstance => _Instance ?? (_Instance = new ReportHelper());
- // private ReportHelper() { }
-
- // public object GetData(string path)
- // {
- // DataRecord record = new DataRecord();
- // return record.Read<object>(path);
- // }
-
- //}
- }
|