private void dgatas_CellClick(object sender, DataGridViewCellEventArgs e) { ManageMenu mm = new ManageMenu(); txtmname.Text = dgatas.SelectedCells[0].Value.ToString(); txtprice.Text = dgatas.SelectedCells[1].Value.ToString(); var st = (from s in dbku.msmenus where s.name == txtmname.Text select s).First(); pbfood.Image = mm.arraytoimg(st.photo.ToArray()); }
private void btnmanmenu_Click(object sender, EventArgs e) { ManageMenu manmenu = new ManageMenu(); manmenu.Show(); }