Exemplo n.º 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Vehicle_register_edit veh_reg_edit = new Vehicle_register_edit();

            veh_reg_edit.ShowDialog();

            NewUpdate();
        }
Exemplo n.º 2
0
        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            if (_ListView.SelectedItem != null)
            {
                Vehicle_register_edit veh_reg_edit = new Vehicle_register_edit(_ListView.SelectedItem as DataRowView);
                veh_reg_edit.ShowDialog();

                NewUpdate();
            }
            else
            {
                MessageBox.Show("Строка не выбрана!");
            }
        }