Exemple #1
0
        public NewAllergy(RecipeFinderDatabase form)
        {
            InitializeComponent();

            mDatabaseConnection = new DatabaseConnection();
            mForm = form;
        }
        public NewIngredient(RecipeFinderDatabase form, int recipeId)
        {
            InitializeComponent();

            mDatabaseConnection = new DatabaseConnection();
            mForm = form;
            mRecipeId = recipeId;
        }
        public RecipeFinderDatabase()
        {
            InitializeComponent();

            mDatabaseConnection = new DatabaseConnection();

            lbIngredients.DisplayMember = "Name";
            lbAllergies.DisplayMember = "Name";
            lbAllergiesRecipes.DisplayMember = "Name";
            cbbAllergy.DisplayMember = "Name";
            lbRecipes.DisplayMember = "Title";

            ReloadRecipes();
            ReloadAllergies();
        }