20 lines
395 B
C#
20 lines
395 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ExI.Event
|
|
{
|
|
class MyClass
|
|
{
|
|
public event EventHandler<EventArgs>? Complished;
|
|
|
|
public void Calc(int complexity)
|
|
{
|
|
Thread.Sleep(complexity);
|
|
Complished?.Invoke(this, EventArgs.Empty);
|
|
}
|
|
}
|
|
}
|