Ejemplo n.º 1
0
        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));
            }));
        }
Ejemplo n.º 2
0
 private void Cancel()
 {
     ItemCanceled?.Invoke(this, EventArgs.Empty);
 }