private void HandleImageTouched(object sender, EventArgs e)
        {
            if (!_artOpen)
            {
                artmode = new LADSArtworkMode.ArtworkModeWindow(currentImage.filename);
                artmode.Closed += new EventHandler(onArtmodeClose);
                _timer.Tick += new EventHandler(TimerTick_Handler);
                artmode.MultiImage.SetImageSource(@currentImage.xmlpath);
                artmode.MultiImageThumb.SetImageSource(@currentImage.xmlpath);
                artmode.Show();

                _artOpen = true;
                artmode.LayoutArtworkMode(currentImage.filename);

                if (SavedDockedItems != null)
                {
                    artmode.LoadDockedItems(SavedDockedItems);
                }
                else
                {
                }
                artmode.currentArtworkTitle = currentImage.title;
            }
            else
            {
                if (currentImage.filename != artmode.currentArtworkFileName)
                {
                    if (MessageBox.Show("Are you sure you want to switch artworks? You will lose what you have been working on.", "Switch", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
                    {
                        ArtworkModeWindow newWindow = new ArtworkModeWindow(currentImage.filename);
                        artmode.Close();
                        artmode = newWindow;
                        artmode.Closed += new EventHandler(onArtmodeClose);

                        _timer.Tick += new EventHandler(TimerTick_Handler);
                        artmode.MultiImage.SetImageSource(@currentImage.xmlpath);
                        artmode.MultiImageThumb.SetImageSource(@currentImage.xmlpath);
                        newWindow.Show();
                        _artOpen = true;
                        artmode.LayoutArtworkMode(currentImage.filename);
                        artmode.currentArtworkTitle = currentImage.title;

                        if (SavedDockedItems != null)
                        {
                            artmode.LoadDockedItems(SavedDockedItems);
                        }
                        else
                        {
                        }
                    }
                    else
                    {
                        artmode.Show();
                        return;
                    }
                }
                else
                {
                    artmode.Hide();
                    artmode.Show();
                    artmode.ShowActivated = true;
                }
            }
        }
 public void NewImageSelected_Handler(object sender, EventArgs e)
 {
     this.Show();
     string newImageFilename = sender as string;
     if (newImageFilename != currentArtworkFileName)
     {
         if (MessageBox.Show("Are you sure you want to switch artworks? You will lose what you have been working on.","Switch", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
         {
             ArtworkModeWindow newWindow = new ArtworkModeWindow(newImageFilename);
             newWindow.Show();
             this.Close();
         }
         else
         {
             return;
         }
     }
 }