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

            if (dlg.ShowDialog() == true)
            {
                RefreshList();
                MessageBox.Show("Success!");
            }
        }
Exemplo n.º 2
0
        private void lvTrips_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Trip currTrip = lvTrips.SelectedItem as Trip;

            if (currTrip == null)
            {
                return;
            }

            AddEditDialog dlg = new AddEditDialog(this, currTrip);

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