private void Item_Unchecked(object sender, RoutedEventArgs e) { ToggleButton tb = sender as ToggleButton; itemWarning.Add(tb, Flash(tb, (sd, o) => { itemWarning.Remove(tb); tb.IsEnabled = false; ItemCanceled?.Invoke(this, e); Disappear(tb, (sender2, e2) => wpItems.Children.Remove(tb)); })); }
private void Cancel() { ItemCanceled?.Invoke(this, EventArgs.Empty); }