private void localesToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); LocalesU cm = new LocalesU(current, this); cm.Show(); }
public Compralo(Local l, Cliente a, LocalesU parentWindow) { this.currentL = l; this.parentWindow = parentWindow; this.current = a; this.currentU = (Usuario)current; InitializeComponent(); this.CenterToScreen(); this.Text = "Compralo"; ListViewItem item = new ListViewItem(); listView1.Items.Clear(); foreach (Producto local in currentL.GetProductos()) { item = listView1.Items.Add(local.Nombre); item.SubItems.Add(local.Marca); item.SubItems.Add(local.Precio.ToString()); item.SubItems.Add(local.Stock.ToString()); } listView2.Items.Clear(); }