using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExI.Event { class MyClass { public event EventHandler? Complished; public void Calc(int complexity) { Thread.Sleep(complexity); Complished?.Invoke(this, EventArgs.Empty); } } }