public override string ToString()
        {
            List <string> myOut = new List <string>()
            {
                ID.ToString(),
                          NumElec.ToString(),
                          Partido.Trim()
            };

            string myJoined = string.Join(" - ", myOut);

            return(myJoined);
        }
Exemple #2
0
        public override string ToString()
        {
            List <string> myOut = new List <string>();
            string        myJoined;

            if (AllColumn)
            {
                myOut = new List <string>()
                {
                    NumElec.Trim(),
                        NumCand.Trim(),
                        Nombre.Trim().ToUpper(),
                        Apellido1.Trim().ToUpper(),
                        Apellido2.Trim().ToUpper(),
                        Status.Trim().ToUpper(),
                        Fecha_Mes.ToString(),
                        Fecha_Dia.ToString(),
                        Fecha_Ano.ToString()
                };
                myJoined = string.Join("-", myOut);
            }
            else
            {
                myOut = new List <string>()
                {
                    NumElec.Trim(),
                        Nombre.Trim().ToUpper(),
                        Apellido1.Trim().ToUpper(),
                        Apellido2.Trim().ToUpper(),
                        NumCand.Trim(),
                        Status,
                        Fecha_Mes.ToString(),
                        Fecha_Dia.ToString(),
                        Fecha_Ano.ToString()
                };
                myJoined = string.Join(" - ", myOut);
            }

            return(myJoined);
        }