Kod:
Kod: Zaznacz cały
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Hydra;
using System.Windows.Forms;
[assembly: CallbackAssemblyDescription(Name: "Wiadomosc",
Description: "Pokazuje Wiadomosc",
Author: "T",
Version: "0.1",
SystemVersion: "2025.0",
Created: "15-05-2025")]
namespace WinFormsLibrary1
{
[SubscribeProcedure(Procedures.TrN_FS, "PokazWiad")]
public class WinFormsLibrary1Name : Callback
{
public override void Init()
{
AddSubscription(true, 0, Events.OpenWindow, (procID, ctrlID, eveID) =>
{
AddSubscription(true, GetWindow().Children["?Cli_Zapisz"].Id, Events.Accepted, (procedureID, controlID, eventID) =>
{
MessageBox.Show("OK", "OK", MessageBoxButtons.OK, MessageBoxIcon.Stop);
return true;
});
return true;
});
}
public override void Cleanup()
{
}
}
}
Jak rozumiem importuję zbuildowany .dll? Coś źle napisałem? Źle wybrałem "bibliotekę klas" jako taką z Windows.Forms? Zła wersja .NET? Musi być 4.5.1 (taka znalazłem w jakieś starszej dokumentacji w internecie)?
Dzięki za pomoc.