Exemplo n.º 1
0
        private void miAdd_Click(object sender, RoutedEventArgs e)
        {
            AddEditDialog dlg = new AddEditDialog(this);

            if (dlg.ShowDialog() == true)
            {
                refreshList();
                MessageBox.Show("Success!");
            }
        }
Exemplo n.º 2
0
        private void lbPeople_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Cars currCar = lbCars.SelectedItem as Cars;

            if (currCar == null)
            {
                return;
            }

            AddEditDialog dlg = new AddEditDialog(this, currCar);

            if (dlg.ShowDialog() == true)
            {
                refreshList();
                MessageBox.Show("Success!");
            }
        }
Exemplo n.º 3
0
        private void miEdit_Click(object sender, RoutedEventArgs e)
        {
            Cars currCar = lbCars.SelectedItem as Cars;

            if (currCar == null)
            {
                return;
            }

            AddEditDialog dlg = new AddEditDialog(this, currCar);

            if (dlg.ShowDialog() == true)
            {
                refreshList();
                MessageBox.Show("Success!");
            }
        }