/// <summary> /// 匯入資料 /// </summary> public void ImportPackage(IEnumerable <RowData> items, IEnumerable <string> fields) { DataImportEventArgs args = new DataImportEventArgs(); foreach (RowData var in items) { args.Items.Add(var); } foreach (string var in fields) { args.ImportFields.Add(var); } OnDataImport(args); if (DataImport != null) { DataImport.Invoke(this, args); } }
/// <summary> /// 匯入資料 /// </summary> /// <param name="args"></param> protected virtual void OnDataImport(DataImportEventArgs args) { }