Exemple #1
0
        private void Edit_Click(object sender, EventArgs e)
        {
            CarEdit editDialog = new CarEdit(
                parent,
                parent.getCarByIndex(
                    int.Parse(listView1.SelectedItems[0].Name)
                    )
                );

            editDialog.ShowDialog();
        }
Exemple #2
0
        public void ShowEditDialog()
        {
            CarEdit editDialog = new CarEdit(
                parent,
                parent.getCarByIndex(
                    int.Parse(listView1.SelectedItems[0].Name)
                    )
                );

            editDialog.ShowDialog();
        }