/// <summary> /// Получить лист кластеров /// </summary> /// <param name="countClust"></param> public void GetClustList(int countClust) { try { var copyKey = _stateStorageService.GetKeyArr(); var ClList = _clusterServise.Clustering(copyKey, countClust); _stateStorageService.SaveClusterList(ClList); int count = 0; foreach (var el in ClList) { _formView.Visual(el, ref count); } _formView.ChangeStatus("Определены новые кластеры"); _formView.AddtoList(ClList); } catch (Exception ex) { _messageServise.ShowError(ex.Message + " Изображение не было введено в систему."); } }