public void LoadPanel(IAdminObject item) { _item = item; ThumbNailWrapPanel.Children.Clear(); if (item == null) { LoadDefaultImage(); return; } _images = item.GetMultiValue(PropertyId); if (_images == null || _images.Count == 0) { LoadDefaultImage(); return; } try { LoadVehicleImageLarge(_images[imageLoadIndex][Settings.MultiValueValueIndex]); LoadVehicleThumbNails(); } catch {} imageTimer.Start(); }
public void LoadPanel(IAdminObject item) { files.Clear(); FileList.Items.Clear(); _item = item; List<string[]> items = _item.GetMultiValue(PropertyId); if (items == null) { return; } foreach (string[] file in items) { files.Add(file); FileList.Items.Add(file[Settings.MultiValueValueIndex]); } }