示例#1
0
        private void miAdd_Click(object sender, RoutedEventArgs e)
        {
            AddEditDlg dlg = new AddEditDlg(null);

            if (dlg.ShowDialog() == true)
            {
                RefreshList();
            }
        }
示例#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();
            }
        }