Beispiel #1
0
        private void ListBoxGallery_TouchUp(object sender, TouchEventArgs e)
        {
            TouchPoint pt = e.GetTouchPoint(this);
            double RealPos = GetDistanceTwoPoints(pt.Position, altPos.Position);

            if (RealPos < ConfigVariable.TouchAbsVal)
            {
                phWind = new PhotoViewer(ref PhotoGallery, Lbx_Gallery.SelectedIndex);
                phWind.ShowDialog();
            }
        }
Beispiel #2
0
 private void ListBoxGallery_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     PhotoViewer phWind = new PhotoViewer(ref PhotoGallery, Lbx_Gallery.SelectedIndex);
     phWind.ShowDialog();
 }