Exemplo n.º 1
0
 private void registerBtn_Click(object sender, RoutedEventArgs e)
 {
     PatientLoader newScanWindow = new PatientLoader(true);
     newScanWindow.Show();
     newScanWindow.recordedscans.Visibility = Visibility.Visible;
     newScanWindow.patientEntry.SelectedIndex = 2;
     newScanWindow.WindowStartupLocation = WindowStartupLocation.CenterOwner;
 }
Exemplo n.º 2
0
        /// <summary>
        /// calls patient loader with blank fields for entering a new patient
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void AddNewPatient_Click(object sender, RoutedEventArgs e)
        {
            //open patient detail viewer
            this.shutAnyWindows();
            windowPatient       = new PatientLoader(false);
            windowPatient.Owner = this;
            windowPatient.Show();
        }
Exemplo n.º 3
0
        private void registerBtn_Click(object sender, RoutedEventArgs e)
        {
            PatientLoader newScanWindow = new PatientLoader(true);

            newScanWindow.Show();
            newScanWindow.recordedscans.Visibility   = Visibility.Visible;
            newScanWindow.patientEntry.SelectedIndex = 2;
            newScanWindow.WindowStartupLocation      = WindowStartupLocation.CenterOwner;
        }
Exemplo n.º 4
0
        /// <summary>
        /// opens new record with selected patient in patient loader
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        void windowMeta_Closing(object sender, CancelEventArgs e)
        {
            //This is called when window meta is closed as control needs to be passed back to coreloader
            //to load the relevant windows based on what scans a particular patient may have undergone.

            Tuple <int, String, String> activeRecord = windowMeta.returnSelectedRecord();

            //Load patient loader with new patient information using the existing constructor.

            if (activeRecord != null)
            {
                windowPatient       = new PatientLoader(activeRecord.Item1, (int)OperationModes.ShowExistingResults);
                windowPatient.Owner = this;
                windowPatient.Show();
            }
        }