private void tsSpravaVypujcek_Click(object sender, EventArgs e) { if (listView1.SelectedIndices.Count > 0) { FrmVypujcky frmVypujcky = new FrmVypujcky(ctenari[listView1.SelectedIndices[0]]); frmVypujcky.ShowDialog(); } }
private void btnVypujcky_Click(object sender, EventArgs e) { FrmVypujcky frmVypujcky = new FrmVypujcky(); frmVypujcky.ShowDialog(); }