private IEnumerator <YieldAction> doUpdateThumbnails() { imageGrid.clear(); yield return(Coroutine.WaitSeconds(0.1f)); foreach (ThumbnailPickerInfo thumbProp in thumbnailProperties) { if (imageGrid == null) { yield break; } String imageId; using (FreeImageBitmap thumb = imageRenderer.renderImage(thumbProp.ImageProperties)) { imageId = thumbnailImages.addImage(thumb, thumb); } imageGrid.SuppressLayout = true; ButtonGridItem item = imageGrid.addItem("Main", "", imageId); item.UserObject = thumbProp; imageGrid.SuppressLayout = false; imageGrid.layout(); if (imageGrid.Count == 1) //Select first item { imageGrid.SelectedItem = imageGrid.getItem(0); } yield return(Coroutine.WaitSeconds(0.1f)); } }
public void setBrowser(Browser browser) { imageGrid.clear(); addNodes(browser.getTopNode(), browser.DefaultSelection); }
void stateController_StatesCleared(MedicalStateController controller) { stateListBox.clear(); entries.Clear(); }
public void clear() { clearImages(); presetListView.clear(); }