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

            if (dlg.ShowDialog() == true)
            {
                RefreshList();
            }
        }
Exemplo n.º 2
0
        private void lvFlights_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Flight f = (Flight)lvFlights.SelectedItem;

            if (f == null)
            {
                return;
            }
            AddEditDlg dlg = new AddEditDlg(f);

            if (dlg.ShowDialog() == true)
            {
                RefreshList();
            }
        }