Beispiel #1
0
        public bool Remover(Cocina a)
        {
            bool retorno = false;

            if (this - a)
            {
                retorno = true;
            }
            return(retorno);
        }
Beispiel #2
0
        public bool Agregar(Cocina a)
        {
            bool retorno = false;

            if (this + a)
            {
                retorno = true;
            }
            return(retorno);
        }
        private int GetIndice(Cocina c)
        {
            int i;

            for (i = 0; i < this._lista.Count; i++)
            {
                if (this._lista[i] == c)
                {
                    return(i);
                }
            }
            i = -1;//no encontro ninguno igual
            return(i);
        }
Beispiel #4
0
        private int GetIndice(Cocina a)
        {
            int i = -1;

            foreach (Cocina item in this._lista)
            {
                i++;
                if (item.Equals(a))
                {
                    return(i);
                }
            }
            return(-1);
        }
 public bool Remover(Cocina c)
 {
     return(this - c);
 }
 public bool Agregar(Cocina c)
 {
     return(this + c);
 }
Beispiel #7
0
 private int GetIndice(Cocina c)
 {
     return(this._lista.IndexOf(c));
 }