private void buttonEditFilterInExtraWindow_Click_1(object sender, RoutedEventArgs e) { EditFilter editFilter = new EditFilter(); editFilter.LoadFilter(listBoxFilters.SelectedItem as Filter); editFilter.Show(); }
private void buttonEditFilter_Click(object sender, RoutedEventArgs e) { Filter filter = listBoxFilters.SelectedItem as Filter; if (filter != null) { EditFilter editFilter = new EditFilter(); editFilter.LoadFilter(filter); editFilter.Show(); } }
void buttonEdit_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; if (button != null) { Filter filter = button.CommandParameter as Filter; if (filter != null) { EditFilter editFilter = new EditFilter(); editFilter.LoadFilter(filter); editFilter.Show(); } } }