public ListClothesVM(ClothesItemDTO dto) { ClothesSource = dto.ClothesSource; ClothesTitle = dto.ClothesTitle; ClothesId = dto.ClothesId; DTO = dto; }
public MainPageItem(ClothesItemDTO dto) { InitializeComponent(); this.BindingContext = new MainPageItemVM(dto, this); //picker.Items.Add("Тип1"); //picker.Items.Add("Тип2"); //picker.Items.Add("Тип3"); //picker.Items.Add("Тип4"); //picker.Items.Add("Тип5"); }
public MainPageItemVM(ClothesItemDTO dto, IClothesPage page) { _clothesPicker.Items.Add("Головной убор"); _clothesPicker.Items.Add("Верхняя одежда"); _clothesPicker.Items.Add("Обувь"); _clothesPicker.Items.Add("Аксессуар (голова)"); _clothesPicker.Items.Add("Аксессуар (тело)"); _dto = dto; _page = page; LoadData(); }
public async Task <ClothesItemDTO> GetValue(ClothesItemDTO dto) { await Task.Delay(500); return(new ClothesItemDTO() { ClothesTitle = _clothesTitle, ClothesSource = dto.ClothesSource, ClothesId = dto.ClothesId }); }
public async Task <ClothesItemDTO> LoadClothes(ClothesItemDTO dTO) { await Task.Delay(2000); _clothes.Add(dTO); var clothes = _clothes.FirstOrDefault(x => x.ClothesId == dTO.ClothesId); if (clothes == null) { throw new Exception("Такой одежды нет"); } return(new ClothesItemDTO() { ClothesId = dTO.ClothesId, ClothesSource = dTO.ClothesSource, ClothesTitle = dTO.ClothesTitle }); }
public async void ShowClothesItemPage(ClothesItemDTO dto) { await Navigation.PushAsync(new MainPageItem(dto)); }
public Task <ClothesItemDTO> LoadClothes(ClothesItemDTO dTO) { throw new NotImplementedException(); }
public async void SendValue(ClothesItemDTO dto) { await Task.Delay(2000); _clothesTitle = dto.ClothesTitle; }