public receipie_view(server.recipe r, int index)
 {
     InitializeComponent();
     recipeTitle.Text = r.Title;
     this_recipe      = r;
     this_index       = index;
 }
 public search_top_grid()
 {
     InitializeComponent();
     this_recipe             = myServer.getRandomRecipe();
     recipe_description.Text = this_recipe.Desc;
     recipeTitle.Text        = this_recipe.Title;
 }
        public addnewrecipe(server.recipe r, int index)
        {
            InitializeComponent();
            foreach (server.category c in myServer.getAllCategories())
            {
                categoriesList.Items.Add(c.Category_name);
            }
            this_recipe = r;
            this_index  = index;

            titletxtbox.Text  = r.Title;
            authortxtbox.Text = r.Author;
            urltextbox.Text   = r.Video_url;
            desctxtbox.Text   = r.Desc;

            addRecipeBtn.Text = "Save Changes";
        }
 public search_bottom_grid()
 {
     InitializeComponent();
     this_recipe      = myServer.getRandomRecipe();
     recipeTitle.Text = this_recipe.Title;
 }