private void button1_Click(object sender, EventArgs e) { // Добавление Закказа FormEditOrder F = new FormEditOrder(-1, Base, refreshListView); F.ShowDialog(this); }
private void button3_Click(object sender, EventArgs e) { // Изменение Закказа if (listView1.SelectedIndices.Count > 0) { int n = listView1.SelectedIndices[0]; FormEditOrder F = new FormEditOrder(n, Base, refreshListView); F.ShowDialog(this); } }