protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);
if (e.OriginalSource == this.InspectorImage)
{
if (this.inspectorEntry.Image != null)
{
if ((Keyboard.Modifiers & ModifierKeys.Control) != ModifierKeys.Control && this.inspectorEntry.HasMultipleImages)
{
this.inspectorEntry.NextImage();
}
if (!this.imageUriHashSet.Contains(this.inspectorEntry.Image))
{
this.imageUriHashSet.Add(this.inspectorEntry.Image);
}
if ((Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
{
UpdateImage(this.inspectorEntry.Image, true);
}
else
{
UpdateImage(this.inspectorEntry.Image, false);
}
this.imageUriQueue.Enqueue(this.inspectorEntry.Image);
}
}
else if (e.OriginalSource == this.CloseImage)
{
this.sourceOpacity = this.Canvas.Opacity;
this.targetOpacity = 0;
this.sourceScaleX = this.ScaleTransform.ScaleX;
this.sourceScaleY = this.ScaleTransform.ScaleY;
this.targetScaleX = this.targetScaleY = 0;
this.popupStep = 0;
this.waitTimer.Stop();
}
else if (e.OriginalSource == this.BackImage)
{
Back();
}
else if (e.OriginalSource != this.InspectorCanvas && e.OriginalSource != this.UpImage && e.OriginalSource != this.DownImage)
{
this.selectedPosition = this.selectedIndex = null;
this.previousInspectorEntry = this.inspectorEntry;
this.nextInspectorEntry = null;
}
}