Beispiel #1
0
        public void CrearDataSetCompleto()
        {
            dsShop = new dsCuaShop();

            daArticulo = new dsCuaShopTableAdapters.ArticuloTableAdapter();
            daArticulo.Fill(dsShop.Articulo);

            daEmpleado = new dsCuaShopTableAdapters.EmpleadoTableAdapter();
            daEmpleado.Fill(dsShop.Empleado);

            daRecogida = new dsCuaShopTableAdapters.RecogidaTableAdapter();
            daRecogida.Fill(dsShop.Recogida);

            daVenta = new dsCuaShopTableAdapters.VentaTableAdapter();
            daVenta.Fill(dsShop.Venta);

            daFamilia = new dsCuaShopTableAdapters.FamilliaTableAdapter();
            daFamilia.Fill(dsShop.Famillia);

            daSubFamilia = new dsCuaShopTableAdapters.SubFamiliaTableAdapter();
            daSubFamilia.Fill(dsShop.SubFamilia);

            daAdmin = new dsCuaShopTableAdapters.AdminTableAdapter();
            daAdmin.Fill(dsShop.Admin);

            daArticulosVenta = new dsCuaShopTableAdapters.ArticulosVentaTableAdapter();
            daArticulosVenta.Fill(dsShop.ArticulosVenta);
        }
Beispiel #2
0
        static public bool VerifyAdminAccount(string inputUsername, string inputPassword)
        {
            AdminDataSet admindataset = new AdminDataSet();

            AdminTableAdapter adminTableAdapter = new AdminTableAdapter();

            adminTableAdapter.Fill(admindataset.Admin);

            string username = admindataset.Admin[0].Username;
            string password = admindataset.Admin[0].Password;

            if (username.Equals(inputUsername) && password.Equals(inputPassword))
            {
                return(true);
            }
            else
            {
                return(true);
            }
        }