// Загрузка связи с ресурсами private ResConnectionWPF LoadResConnection(SaveResourceConnection connectres, Dictionary <Guid, ProcedureWPF> worksavelistproc, Dictionary <Guid, ResourceWPF> worksavelistres) { ProcedureWPF proc = worksavelistproc[connectres.StartID]; ResourceWPF res = worksavelistres[connectres.EndID]; ResConnectionWPF connection = new ResConnectionWPF(proc, res); proc.AddResPutConnection(connection); res.AddResPutConnection(connection); return(connection); }