コード例 #1
0
        public Patients()
        {
            var app = Application.Current as App;

            medicalRecordController = app.medicalRecordController;

            MyEvents.OpenRecord.CustomEvent += ClosePanel;
            InitializeComponent();
            SelectedRow = null;

            if (ComboBox != null)
            {
                ComboBox.Items.Add("Svi");
                ComboBox.Items.Add("Bolničko lečenje");
                ComboBox.Items.Add("Hitni");
                ComboBox.SelectedIndex = 0;
            }
            if (Patients_Data != null)
            {
                SetPatientList();
            }
        }
コード例 #2
0
        private void Patients_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                if (Patients_Data.SelectedItem != null)
                {
                    if (Patients_Data.SelectedItem is ModelHCI.Patient)
                    {
                        var row = (ModelHCI.Patient)Patients_Data.SelectedItem;


                        if (row != null)
                        {
                            SelectedRow = row;

                            MoreInfo.Visibility = Visibility.Visible;
                        }
                    }
                }
            }
            catch (Exception)
            {
            }
        }
コード例 #3
0
 public PatientSelectionChanged()
 {
     SelectedRow = Pages.Patients.SelectedRow;
 }