//Чтение иформации по проекту из файла проекта public void ReadProject() { ReadSysTabl(true); Procent = 5; if (IsError) { return; } if (ThreadCalc.IsReadSources || ThreadCalc.IsWriteReceivers) { Start(ReadSignals, 5, 15); if (IsError) { return; } if (ThreadCalc.ImitMode != ImitMode.NoImit && Imitator != null) { using (Start(15, 25)) Imitator.PrepareSignals(_signalsCodes); } if (IsError) { return; } Start(JoinSignals, 25, 30); } if (!Start(ReadCalcParams, 30, 75)) { return; } //if (ThreadCalc.IsWriteArchives || ThreadCalc.IsWriteVed) ThreadCalc.Start(ReadArchiveParams, 75); }
//Методы, перенесенные из ThreadCalc private Command Start(double start, double finish = 100) { return(ThreadCalc.Start(start, finish)); }