/// <summary>
 /// Конструктор для выбора действия для фотографий монтажа
 /// </summary>
 /// <param name="_mount">Монтаж</param>
 /// <param name="_mounters">Список монтажников</param>
 /// <param name="_servicemans">Список техников</param>
 public SelectActionsPopupPageViewModel(Mounts _mount, List <NewMounterExtensionBase> _mounters, List <NewServicemanExtensionBase> _servicemans)
 {
     Mount       = _mount;
     Mounters    = _mounters;
     Servicemans = _servicemans;
     IsPickPhoto = null;
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Вывеска объекта"
     });
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Обходной лист"
     });
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Расшлейфовка объекта"
     });
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Ответственные объекта"
     });
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Акт технич. сост-я 1"
     });
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Акт технич. сост-я 2"
     });
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Схема объекта"
     });
     PhotoNames.Add(new PhotoTypes()
     {
         PhotoTypeId = Guid.NewGuid(), PhotoTypeName = "Доп. фото"
     });
     //ImgSrc = "EmptyPhoto.png";
     VisibleAcceptedLayout = false;
     CameraImage           = IconName("camera");
     CollectionImage       = IconName("collections");
     CloseImage            = IconName("close");
     IsChanged             = false;
     Counter = 0;
 }
Example #2
0
 public string GetPhotoName(int number)
 {
     return(PhotoNames.Split(",").ToArray()[number]);
 }