Exemplo n.º 1
0
        public winOperation(PatientClass patient)
        {
            InitializeComponent();
            this.currentPatient = patient;
            MODEL_PATH          = patient.OBJFile;
            ModelVisual3D device3D = new ModelVisual3D();

            device3D.Content = Display3d(MODEL_PATH);
            viewPort3d.Children.Add(device3D);
            //initialize the leap controller and listener
            coords     = new Point();
            controller = new Controller();
            listener   = new LeapGestureListener();
            controller.AddListener(listener);
            listener.LeapSwipe      += SwipeAction;
            listener.fingerLocation += Listener_fingerLocation;;
            listener.screenTap      += Listener_screenTap;
            listener.ZoomEvent      += Listener_ZoomEvent;



            ctrlPatient.timerStart();

            Gauze.Value  = 0;
            Towels.Value = 0;
            Screws.Value = 0;
        }
        public winDashboard(int doctorId = 0)
        {
            InitializeComponent();

            coords     = new Point();
            controller = new Controller();
            listener   = new LeapGestureListener();
            controller.AddListener(listener);
            listener.fingerLocation += Listener_fingerLocation;
            listener.screenTap      += Listener_screenTap;
            listener.ZoomEvent      += Listener_ZoomEvent;
            docId = doctorId;
        }