コード例 #1
0
        private void miAdd_Click(object sender, RoutedEventArgs e)
        {
            AddEditDialog dlg = new AddEditDialog(this);

            if (dlg.ShowDialog() == true)
            {
                refreshList();
                MessageBox.Show("Success!");
            }
        }
コード例 #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!");
            }
        }
コード例 #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!");
            }
        }