Beispiel #1
0
        private void OnListElements(IPackage package)
        {
            try
            {
                sChanged = false;

                Application.UseWaitCursor = true;
                ContentList.BeginUpdate();
                ContentList.Enabled = false;

                ContentList.Items.Clear();

                IList <IResourceIndexEntry> list = package.FindAll(value => { return(true); });
                foreach (IResourceIndexEntry entry in list)
                {
                    ListItem item = ListItem.CreateHandler(entry, package);
                    if (item == null)
                    {
                        continue;
                    }

                    ContentList.Items.Add(item);
                }
            }
            finally
            {
                ContentList.Enabled = true;
                ContentList.EndUpdate();
                Application.UseWaitCursor = false;
            }
        }