Ejemplo n.º 1
0
        private void FillGridIngredients()
        {
            DataTable dt = Convert_Lists.ConvertTo <Ingredients>(_serv.GetAll());

            gridIngredients.DataSource                    = dt;
            gridIngredients.Columns["Id"].Visible         = false;
            gridIngredients.Columns["Name"].HeaderText    = "Nome";
            gridIngredients.Columns["IsValid"].HeaderText = "Valido";
            gridIngredients.Columns["Quantity"].Visible   = false;
        }
Ejemplo n.º 2
0
        private void FillGridUsers()
        {
            DataTable dt = Convert_Lists.ConvertTo <User>(_serv.GetAll());

            gridUsers.DataSource = dt;
            gridUsers.Columns["Password"].Visible     = false;
            gridUsers.Columns["Id"].Visible           = false;
            gridUsers.Columns["Username"].HeaderText  = "Usuário";
            gridUsers.Columns["IsActive"].HeaderText  = "Ativo";
            gridUsers.Columns["IsBlocked"].HeaderText = "Bloqueado";
        }
Ejemplo n.º 3
0
        private void FillGridRecipes()
        {
            DataTable dt = Convert_Lists.ConvertTo <Recipes>(_serv.GetAllRecipesList());

            gridRecipes.DataSource = dt;
            gridRecipes.Columns["IsValid"].HeaderText     = "Válida";
            gridRecipes.Columns["Title"].HeaderText       = "Título";
            gridRecipes.Columns["Username"].HeaderText    = "Usuário";
            gridRecipes.Columns["Id"].Visible             = false;
            gridRecipes.Columns["UserId"].Visible         = false;
            gridRecipes.Columns["Classification"].Visible = false;
            gridRecipes.Columns["Description"].Visible    = false;
            gridRecipes.Columns["Difficulty"].Visible     = false;
            gridRecipes.Columns["Duration"].Visible       = false;
        }
Ejemplo n.º 4
0
        private void FillGridBlockedUsers()
        {
            DataTable dt = Convert_Lists.ConvertTo <User>(_serv.BlockedUsers());

            gridUsers.DataSource = dt;
        }