Ejemplo n.º 1
0
        private static void DeleteTemplateField(object sender, ExecutedRoutedEventArgs e)
        {
            Main          main  = (Main)sender;
            TemplateField field = main.SelectedTemplateField;

            if (field != null)
            {
                field.Delete();
                main.SelectedTemplateField = null;
            }
        }