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 winChecklist(PatientClass Patient) { InitializeComponent(); checkBoxes = new List <CheckBox>(); int topMargin = 20; int count = 0; patient = Patient; foreach (string checklistItem in patient.procedure.CheckList) { CheckBox temp = new CheckBox(); temp.Content = checklistItem; temp.HorizontalAlignment = HorizontalAlignment.Left; temp.VerticalAlignment = VerticalAlignment.Top; ScaleTransform scale = new ScaleTransform(2.0, 2.0); //temp.RenderTransformOrigin = new Point(0.5, 0.5); temp.RenderTransform = scale; temp.LayoutTransform.Value.Scale(6, 6); Thickness margin = temp.Margin; margin.Left = 0; margin.Top = topMargin; margin.Right = 0; temp.Margin = margin; stackPanel.Children.Add(temp); checkBoxes.Add(temp); topMargin += count == 2 ? 40 : 5; count++; } }
public EndScreen(PatientClass patient, int TimeEnlapsed, Dictionary <string, int> supplies) { InitializeComponent(); this.patient = patient; lblPatient.Content = string.Format(lblPatient.Content.ToString(), patient.FirstName + " " + patient.LastName); lblDate.Content = string.Format(DateTime.Now.ToString("HH:mm:ss")); lblTimeEnlpased.Content = string.Format(lblTimeEnlpased.Content.ToString(), string.Format("{0}:0{1}:{2}", TimeEnlapsed / 86400, TimeEnlapsed / 60, TimeEnlapsed % 60)); foreach (KeyValuePair <string, int> item in supplies) { lblSupplies.Content += string.Format("{0}:{1}\n", item.Key, item.Value); } }
public winOperstionSummary(PatientClass patient) { InitializeComponent(); this.currentPatient = patient; }