/// <summary> /// Loads the input sources. /// </summary> public async void LoadInputSources() { using (State.BusyScope()) { Emitter.Publish(CommonLocalised.CheckingActiveSQLInstance, DateTime.Now.AsUKDatetime()); await Prepared.Refresh(); } }
/// <summary> /// Load an input file /// the interaction state will become 'is busy' /// </summary> public async void LoadInputFile() { using (State.BusyScope()) { Emitter.Publish(CommonLocalised.LineDivider); Emitter.Publish(CommonLocalised.CommencingSelectFormat, DateTime.Now.AsUKDatetime()); Emitter.Publish(CommonLocalised.LineDivider); await Bulk.Import( Prepared.SQLInstance, Prepared.DBName, Prepared.DBUser, Prepared.DBPassword, () => FileSelector.GetFileName <IManageRunPreparation>(), x => Challenge.GetResponse(x)); await Prepared.Refresh(); } }