private void Update(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { dynamic senderDynamic = sender; if (senderDynamic.SelectedValue == null) { return; } int selectedRouteId = senderDynamic.SelectedValue.Id; var updateRouteWindow = new UpdateRouteWindow(selectedRouteId); updateRouteWindow.Show(); }
private void Add(object sender, RoutedEventArgs e) { var updateRouteWindow = new UpdateRouteWindow(); updateRouteWindow.Show(); }