private void EditCargo(object sender, RoutedEventArgs e) { NewEditCargo editCargoWindow = new NewEditCargo(true, (Ladunki)cargoList.SelectedItem); editCargoWindow.ShowDialog(); refreschLists(); }
private void NewCargo(object sender, RoutedEventArgs e) { NewEditCargo newCargoWindow = new NewEditCargo(false, null); newCargoWindow.ShowDialog(); fillCargoList(); }
private void EditCargo() { NewEditCargo newCargoWindow = new NewEditCargo(true, (Ladunki)cargoList.SelectedItem); newCargoWindow.ShowDialog(); fillCargoList(); cargoList.ItemsSource = new Queries().findCargo(CargoSearching.Text); }