Ejemplo n.º 1
0
 public void RegisterCustomActionDelegate(CustomActionDelegate custActDelegate)
 {
     if (!registeredCustActDelegates.Contains(custActDelegate))
     {
         registeredCustActDelegates.Add(custActDelegate);
     }
 }
Ejemplo n.º 2
0
 public void UnregisterCustomActionDelegate(CustomActionDelegate custActDelegate)
 {
     if (registeredCustActDelegates.Contains(custActDelegate))
     {
         registeredCustActDelegates.Remove(custActDelegate);
     }
 }
Ejemplo n.º 3
0
        public Example()
        {
            InitializeComponent();

            pvLesson2.Loaded             += new RoutedEventHandler(pvLesson2_Loaded);
            pvLesson2.ItemActionExecuted += new EventHandler <ItemActionEventArgs>(pvLesson2_ItemActionExecuted);
            sample1Delegate = new CustomActionDelegate(CreateSample1CustomAction);
            sample2Delegate = new CustomActionDelegate(CreateSample2CustomAction);

            DataContext = _viewModel;
        }