public CAdminPacientes() { this.listaPacientes = new List <CPaciente>(); if (instance == null) { instance = this; } }
private void Window_Loaded(object sender, RoutedEventArgs e) { logSystem = new LogSystem(); if (!File.Exists(CUtilities.SAVE_FILE_NAME)) { File.Create(CUtilities.SAVE_FILE_NAME); } admin = new CAdminPacientes(); admin.Cargar(); CUtilities.FillListView(lV_Pacientes, admin.GetListaPacientes()); CUtilities.FillListView(lV_AsistPacientes, admin.GetListaPacientes()); cB_Ingreso_Sangre.SelectedIndex = 0; cB_Dia.SelectedIndex = 0; cB_Mes.SelectedIndex = 0; cB_Rep_Dia.SelectedIndex = 0; cB_Rep_Dia2.SelectedIndex = 0; cB_Rep_Mes.SelectedIndex = 0; cB_Rep_Mes2.SelectedIndex = 0; cB_AsistPacientes_Dia.SelectedIndex = 0; cB_AsistPacientes_Mes.SelectedIndex = 0; cB_Rep_FechaAsist_Day.SelectedIndex = 0; cB_Rep_FechaAsist_Month.SelectedIndex = 0; }