Esempio n. 1
0
        public Agenda()
        {
            InitializeComponent();
            Regex r = new Regex(@"(\(.*\)|Exp)");

            Datos = new PostgresDataAccess.DataAccess();

            // llenar combobox
            List <PostgresDataAccess.Expediente> l = new List <PostgresDataAccess.Expediente>();
            DataTable dt = Datos.ObtenerExpedientesActivos();

            foreach (DataRow dr in dt.Rows)
            {
                PostgresDataAccess.Expediente exp = new PostgresDataAccess.Expediente();
                exp.Id_expediente = (int)dr["id_expediente"];
                exp.Seis2         = (string)dr["seis2"];
                exp.Cero5         = (string)dr["cero5"];
                exp.Ubicacion     = new PointD((double)dr["puntoX"], (double)dr["puntoY"]);
                comboExpedientes.Items.Add(Datos.ObtenerClaveLlamado((int)dr["codigo_llamado"]) + " >> " + exp.Seis2 + " / " + exp.Cero5);
                l.Add(exp);
            }

            exps = l.ToArray();

            FillCombos();
        }