Esempio n. 1
0
 public void OnPointerUp(PointerEventData ped)
 {
     if (!(ped.pointerId == -1 || ped.pointerId == 0))
     {
         return; // ignore not left click or first touch
     }
     ShowError(.5f, false);
     OnErrorShown?.Invoke(false);
 }
 public static void DisplayError(string error, string caption, MessageBoxImage messageBoxImage = MessageBoxImage.Error)
 {
     MessageBox.Show(error, caption, MessageBoxButton.OK, messageBoxImage);
     OnErrorShown?.Invoke();
 }