private void button1_Click(object sender, EventArgs e) { MAvioni f = new MAvioni(); f.Tip = 0; if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { PopuniListView(); } }
private void button2_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 0) { return; } int id = Int32.Parse(listView1.SelectedItems[0].SubItems[0].Text); Avion av = DataManager.GetAvion(id); MAvioni f = new MAvioni(); f.Tip = 1; f.avion = av; if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK) { PopuniListView(); } }