ui/wpf/UIcore/Toolkit.cs

Fri, 29 Nov 2024 22:11:07 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 29 Nov 2024 22:11:07 +0100
changeset 98
16e84fac48bd
parent 0
2483f517c562
permissions
-rw-r--r--

in the repo list, show the stored-user if no user is configured

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