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(); } }
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) { } }
public PatientSelectionChanged() { SelectedRow = Pages.Patients.SelectedRow; }