ui/wpf/UIcore/Toolkit.cs

Sun, 16 Jun 2024 11:36:27 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 16 Jun 2024 11:36:27 +0200
changeset 42
9af327d0e0e4
parent 0
2483f517c562
permissions
-rw-r--r--

update toolkit

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;

namespace UI
{
    public class EventCallback
    {
        public IntPtr Object;
        public Action<IntPtr> Action;

        public EventCallback(IntPtr uiobj, Action<IntPtr> action)
        {
            Object = uiobj;
            Action = action;
        }

        public void Callback(object sender, RoutedEventArgs a)
        {
            Action.Invoke(Object);
        }
    }
}

mercurial