/// <summary> /// Конструктор объекта /// </summary> /// <param name="typ">Тип канала</param> /// <param name="name">Имя канала</param> protected LinkBase(ModuleTyp typ, String name) : base(typ, name) { _server = false; _state = LinkState.Closed; Opened = null; Closed = null; Error = null; DataReceived = null; }
public ProtoBase(ModuleTyp typ, String title, int index) : base(typ, title, index) { _state = EProtoState.Closed; _task = EProtoTask.None; _result = EProtoResult.Unknow; _executeState = CoreExecuteState.Active; OnOpen = null; OnClose = null; OnBreak = null; OnError = null; OnListen = null; ModIndex = ++_sharedId; }
private EProtoTask _task; // Текущая задача протокола #endregion Fields #region Constructors public ProtoBase(ModuleTyp typ, String title, int index) : base(typ, title, index) { _state = EProtoState.Closed; _task = EProtoTask.None; _result = EProtoResult.Unknow; _executeState = CoreExecuteState.Active; OnOpen = null; OnClose = null; OnBreak = null; OnError = null; OnListen = null; ModIndex = ++_sharedId; }