Esempio n. 1
0
    protected void MenuItemGridView_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "AddItem")
        {
            int index      = Convert.ToInt32(e.CommandArgument);
            int menuItemId = Convert.ToInt32(MenuItemGridView.Rows[index].Cells[0].Text);

            WcfServiceReference.MenuItem menuItem = entities.MenuItems.Where(x => x.Id == menuItemId).FirstOrDefault();

            Master.AddItem(menuItem);
        }
    }
 public void AddItem(WcfServiceReference.MenuItem menuItem)
 {
     //OrderDetails1.AddItem(menuItem.Name, menuItem.Price, 1);
     OrderDetails1.AddItem(menuItem);
 }
Esempio n. 3
0
 public void AddItem(WcfServiceReference.MenuItem menuItem)
 {
     classClsItemsManager.AddItem(menuItem);
     updateTextFields();
     ListView1.DataBind();
 }