コード例 #1
0
 /// <summary>
 /// Regelt die Auswahl zwischen den verschiedenen Getränkegrößen
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SizeLarge_Checked(object sender, RoutedEventArgs e)
 {
     Size = Core.Size.Large;
     SizeSmall.IsChecked  = false;
     SizeMedium.IsChecked = false;
     SizeLarge.IsChecked  = true;
 }
コード例 #2
0
 private static Core.Point TranslateCoordinates(Core.Point point, Core.Size mapSize)
 {
     return(new Core.Point(point.X, mapSize.Height - point.Y - 1));
 }
コード例 #3
0
ファイル: Imgproc.cs プロジェクト: brehm/aruco-unity
                public static void InitUndistortRectifyMap(Core.Mat cameraMatrix, Core.Mat distCoeffs, Core.Mat R, Core.Mat newCameraMatrix, Core.Size size,
                                                           Core.TYPE m1type, out Core.Mat map1, out Core.Mat map2)
                {
                    Core.Exception exception = new Core.Exception();
                    System.IntPtr  map1Ptr, map2Ptr;

                    au_cv_imgproc_initUndistortRectifyMap(cameraMatrix.cppPtr, distCoeffs.cppPtr, R.cppPtr, newCameraMatrix.cppPtr, size.cppPtr, (int)m1type,
                                                          out map1Ptr, out map2Ptr, exception.cppPtr);
                    map1 = new Core.Mat(map1Ptr);
                    map2 = new Core.Mat(map2Ptr);

                    exception.Check();
                }
コード例 #4
0
        /// <summary>
        /// Verwaltet die wechsel zwischen den einzelnen menüs
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MenuToggle(object sender, RoutedEventArgs e)
        {
            Button B             = sender as Button;
            string ButtonContent = B.Content.ToString();

            // Sichtbarkeiten zurücksetzte => Unsichtbar
            Essen.Visibility    = Visibility.Hidden;
            Getränke.Visibility = Visibility.Hidden;
            Dessert.Visibility  = Visibility.Hidden;
            Beilagen.Visibility = Visibility.Hidden;
            switch (ButtonContent)
            {
            case "Beilagen":
                Beilagen.Visibility = Visibility.Visible;
                break;

            case "Getränke":
            {
                // Getränke Fenster einblenden und die sichtbarkeit  der größen auswahl setzten
                Getränke.Visibility   = Visibility.Visible;
                SizeSmall.Visibility  = Visibility.Visible;
                SizeMedium.Visibility = Visibility.Visible;
                SizeLarge.Visibility  = Visibility.Visible;
                switch (Size)
                {
                case Core.Size.Small:
                    Size = Core.Size.Small;
                    SizeSmall.IsChecked  = true;
                    SizeMedium.IsChecked = false;
                    SizeLarge.IsChecked  = false;
                    break;

                case Core.Size.Medium:
                    Size = Core.Size.Medium;
                    SizeSmall.IsChecked  = false;
                    SizeMedium.IsChecked = true;
                    SizeLarge.IsChecked  = false;
                    break;

                case Core.Size.Large:
                    Size = Core.Size.Large;
                    SizeSmall.IsChecked  = false;
                    SizeMedium.IsChecked = false;
                    SizeLarge.IsChecked  = true;
                    break;

                default:
                    break;
                }
            }
            break;

            case "Essen":
                Essen.Visibility = Visibility.Visible;
                break;

            case "Dessert":
                Dessert.Visibility = Visibility.Visible;
                break;

            default:
                break;
            }
            AddProductToBill(null);
        }