private void ExecuteEdit(object parameter)
        {
            int index = Ceiss.IndexOf(parameter as Ceis);

            if (index > -1 && index < Ceiss.Count)
            {
                Ceis = new Ceis();
                Ceis = Ceiss[index];

                //int i = 0;
                //foreach (var item in availableQueries)
                //{
                //    if (item.idProfile == User.IdProfile)
                //    {
                //        Queries.MoveCurrentTo(availableQueries[i]);
                //        break;
                //    }
                //    i++;
                //}



                //FAMA.AP.Model.Profile currentQuery = (FAMA.AP.Model.Profile)Queries.CurrentItem;
                //currentQuery.idProfile = User.IdProfile;
                //currentQuery.ProfileName = User.ProfileName;
            }
        }
        private void Execute(object parameter)
        {
            int index = Ceiss.IndexOf(parameter as Ceis);

            if (index > -1 && index < Ceiss.Count)
            {
                FAMA.AP.DataLayer.DbCeis Conexion = new FAMA.AP.DataLayer.DbCeis();
                Conexion.DeleteData(Ceiss[index]);
                Ceiss.RemoveAt(index);
            }
        }