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);
 }
예제 #3
0
 void stateController_StatesCleared(MedicalStateController controller)
 {
     stateListBox.clear();
     entries.Clear();
 }
예제 #4
0
 public void clear()
 {
     clearImages();
     presetListView.clear();
 }