private void updateInfoToolStripMenuItem_Click(object sender, EventArgs e) { if (lv.SelectedItems.Count > 0) { Member mem, sel = new Member(); //MessageBox.Show(lv.SelectedItems[0].SubItems[1].Text); sel.memid = lv.SelectedItems[0].SubItems[1].Text; mem = sel.SELECT_BY_ID(); mem.GET_IMAGE_BY_ID(); if (mem != null) { pnlops.Controls.Clear(); mem_update c = new mem_update(); c.mem = mem; c.Width = pnlops.Width; pnlops.Height = c.Height; pnlops.Controls.Add(c); } } }
private void updateInfoToolStripMenuItem_Click(object sender, EventArgs e) { if (lv.SelectedItems.Count > 0) { Member mem, sel = new Member(); //MessageBox.Show(lv.SelectedItems[0].SubItems[1].Text); sel.memid = lv.SelectedItems[0].SubItems[1].Text; mem= sel.SELECT_BY_ID(); mem.GET_IMAGE_BY_ID(); if (mem != null) { pnlops.Controls.Clear(); mem_update c = new mem_update(); c.mem = mem; c.Width = pnlops.Width; pnlops.Height = c.Height; pnlops.Controls.Add(c); } } }