aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Web/SynchronizationFailedEntity.cs
blob: c50044cbe9dd4a349299135f2897f5d012389704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.PPC.Common.Web
{
    public class SynchronizationFailedEntity
    {
        public String Guid { get; set; }
        public String Reason { get; set; }
    }
}
/span>: Thumb { private TouchDevice currentDevice = null; protected override void OnPreviewTouchDown(TouchEventArgs e) { // Release any previous capture ReleaseCurrentDevice(); // Capture the new touch CaptureCurrentDevice(e); } protected override void OnPreviewTouchUp(TouchEventArgs e) { ReleaseCurrentDevice(); } protected override void OnLostTouchCapture(TouchEventArgs e) { // Only re-capture if the reference is not null // This way we avoid re-capturing after calling ReleaseCurrentDevice() if (currentDevice != null) { CaptureCurrentDevice(e); } } private void ReleaseCurrentDevice() { if (currentDevice != null) { // Set the reference to null so that we don't re-capture in the OnLostTouchCapture() method var temp = currentDevice; currentDevice = null; ReleaseTouchCapture(temp); } } private void CaptureCurrentDevice(TouchEventArgs e) { bool gotTouch = CaptureTouch(e.TouchDevice); if (gotTouch) { currentDevice = e.TouchDevice; } } } }