我需要在我的类中使用一些委托。
我想使用接口来“提醒”我设置这些委托。
如何实现?
我的类看起来像这样:
public class ClsPictures : myInterface
{
// Implementing the IProcess interface
public event UpdateStatusEventHandler UpdateStatusText;
public delegate void UpdateStatusEventHandler(string Status);
public event StartedEventHandler Started;
public delegate void StartedEventHandler();
}
我需要一个接口来强制执行这些委托:
public interface myInterface
{
// ?????
}