public void SetPannablePictureBoxControl(PannablePictureBox value)
 {
     PannablePictureBox = value;
     PannablePictureBox.OnPannablePictureImagePropertyChange += (o, args) => UpdateControls();
 }
 private void UpdatePictureBoxImage(PannablePictureBox pannablePictureBox, ShortcutItemImage shortcutItemImage)
 {
     pannablePictureBox.SetImage(shortcutItemImage.CachedImage(),
         shortcutItemImage.Width,
         shortcutItemImage.Height,
         shortcutItemImage.X,
         shortcutItemImage.Y);
 }
 private void UpdatePictureBoxOverlay(PannablePictureBox pannablePictureBox, ShortcutItem currentShortcutItem)
 {
     pannablePictureBox.ShowTextOverlay = currentShortcutItem.Properties.CurrentState.ShowNameOnSquare150X150Logo;
     pannablePictureBox.OverlayColor = currentShortcutItem.Properties.CurrentState.ForegroundText == "light"
         ? Color.White
         : Color.Black;
     pannablePictureBox.TextOverlay = Path.GetFileNameWithoutExtension(currentShortcutItem.ShortcutFileInfo.Name);
 }
 public void SetPannablePictureBoxControl(PannablePictureBox value)
 {
     PannablePictureBox = value;
     PannablePictureBox.OnPannablePictureImagePropertyChange += (o, args) => UpdateControls();
 }