/// <summary> /// 準備匯入 /// </summary> /// <param name="Option"></param> public abstract void Prepare(ImportOption Option);
/// <summary> /// 準備資料 /// </summary> public override void Prepare(ImportOption Option) { mOption = Option; Importbot.ClubDic = Importbot.GetCLUBDic(); Importbot.TeacherNameDic = Importbot.GetTeacherDic(); }
/// <summary> /// 執行匯入功能 /// </summary> public void Execute() { try { ImportOption = new ImportOption(); LoadRule(); mFieldProcessor = new FieldProcessor(mValidateRule.Root); } catch (Exception e) { MessageBox.Show("下載驗證規則時發生錯誤,以下為詳細訊息:"+ System.Environment.NewLine +e.Message); return; } try { ArgDictionary args = new ArgDictionary(); args.SetValue("ImportWizard", this); Features.Invoke(args, mCommands.ToArray()); } catch (Exception e) { MessageBox.Show("開啟匯入表單時發生錯誤,以下為詳細訊息:"+System.Environment.NewLine+e.Message); return; } }