/*protected override void OnInvalidated() * { * ShowActiveFamily(); * }*/ private void ReadImages() { if (selectedIndividual != null) { IList <MultimediaLinkClass> mmLinklList; mmLinklList = selectedIndividual.GetMultimediaLinkList(); if (printMode) { Debug.WriteLine("Images:" + mmLinklList.Count); } Label textLabel = new Label(); textLabel.Text = "Loading " + mmLinklList.Count + " images"; textLabel.AutoSize = true; textLabel.Anchor = AnchorStyles.Left | AnchorStyles.Top; this.Controls.Add(textLabel); //controlList.Add(textLabel); if (mmLinklList.Count > 0) { int cnt = 0; foreach (MultimediaLinkClass link in mmLinklList) { if (printMode) { Debug.WriteLine("link + " + link.GetLink() + " (" + link.GetFormat() + ") " + cnt++ + "/" + mmLinklList.Count); } if (link.GetLink().Contains(".jpg")) { PictureBox picture = new PictureBox(); //picture.Top = pos; picture.AutoSize = true; picture.Image = GetImage(link.GetLink()); if (picture.Image != null) { picture.Anchor = AnchorStyles.Left | AnchorStyles.Top; controlList.Add(picture); //this.Controls.Add(picture); layoutDone = true; } else { picture.Dispose(); } } } } //if( textLabel.Visible = false; } }