//Присвоить результат команды Collect public void AddCollectResult(string result) { if (CollectCommand != null) { CollectedResults = CollectCommand.AddResult(result); } }
//Завершение команды, колекционирущей ошибки public CollectCommand FinishCollect(string results = null) { if (results != null && CollectCommand != null) { CollectedResults = CollectCommand.AddResult(results); } return((CollectCommand)FinishCommand(CollectCommand)); }
//----- //Запуск команды, колекционирущей ошибки public CollectCommand StartCollect(bool isWriteHistory, //Записывать ошибки в ErrorsList bool isCollect) //Формировать общую ошибку { FinishCommand(CollectCommand); FinishCommand(PeriodCommand); FinishCommand(ProgressCommand); FinishCommand(LogCommand); FinishCommand(IndicatorTextCommand); CollectedResults = null; Command = CollectCommand = new CollectCommand(this, Command, isWriteHistory, isCollect); return(CollectCommand); }