Example #1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            buildStrings();
            frmShowResults showResults = new frmShowResults(_data.search(_strRecipeName, _strIngredients, _strSeason, _strStyles, _strCategories));

            showResults.Show();
            this.Hide();
        }
Example #2
0
        private void btnFavorites_Click(object sender, EventArgs e)
        {
            clsSQL         data    = new clsSQL();
            frmShowResults results = new frmShowResults(data.getFavoriteRecipes());

            results.Show();
            this.Hide();
        }
Example #3
0
 public frmShowRecipe(frmShowResults resultsForm, clsRecipe thisRec)
 {
     _data        = new clsSQL();
     _resultsForm = resultsForm;
     _thisRecipe  = thisRec;
     _ingredients = _data.getIngredients(_thisRecipe);
     InitializeComponent();
     populate();
 }