Beispiel #1
0
        private void ImgGalleryCtr_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount > 1)
            {
                // Do double-click code
                //ImageSource myImg

                SelectedSvrImg = ImgGalleryCtrl.GetSelectedImageIdx();
                myPaint.ImportImageGreyScale(ImgList[SelectedSvrImg]);

                if (Para.UpdateDatabase)
                {
                    mydataBase.Update(myImageData[SelectedSvrImg].id);
                }
                this.Close();
                e.Handled = true;
            }
        }