Пример #1
0
        private void EditCargo(object sender, RoutedEventArgs e)
        {
            NewEditCargo editCargoWindow = new NewEditCargo(true, (Ladunki)cargoList.SelectedItem);

            editCargoWindow.ShowDialog();
            refreschLists();
        }
Пример #2
0
        private void NewCargo(object sender, RoutedEventArgs e)
        {
            NewEditCargo newCargoWindow = new NewEditCargo(false, null);

            newCargoWindow.ShowDialog();
            fillCargoList();
        }
Пример #3
0
        private void EditCargo()
        {
            NewEditCargo newCargoWindow = new NewEditCargo(true, (Ladunki)cargoList.SelectedItem);

            newCargoWindow.ShowDialog();
            fillCargoList();
            cargoList.ItemsSource = new Queries().findCargo(CargoSearching.Text);
        }