/// <summary> /// /// </summary> /// <param name="soft"></param> public ErrorManager(Soft soft) { if (soft == null) { throw new ArgumentNullException("soft"); } _soft = soft; }
static private Soft _soft;//= new Soft(); /// <summary> /// /// </summary> /// <returns></returns> static public Soft GetSoft() { //Debug.Assert(_soft != null , "softManager._soft == null"); if (_soft == null) { _soft = new Soft(); } return(_soft); }
private static Soft _soft; //= new Soft(); #endregion Fields #region Methods /// <summary> /// /// </summary> /// <returns></returns> public static Soft GetSoft() { //Debug.Assert(_soft != null , "softManager._soft == null"); if (_soft == null) { _soft = new Soft(); } return _soft; }
public CommuniPortEventProcessor(Soft soft, CommuniPortManager cpManager) { Debug.Assert(soft != null); this._soft = soft; Debug.Assert(cpManager != null); this._cpManager = cpManager; _cpManager.AddedCommuniPort += new CommuniPortEventHandler(_cpManager_AddedCommuniPort); _cpManager.ClosedCommuniPort += new CommuniPortEventHandler(_cpManager_ClosedCommuniPort); _cpManager.DeterminedCommuniPort += new CommuniPortEventHandler(_cpManager_DeterminedCommuniPort); _cpManager.ReceivedCommuniPort += new CommuniPortEventHandler(_cpManager_ReceivedCommuniPort); _cpManager.RemovedCommuniPort += new CommuniPortEventHandler(_cpManager_RemovedCommuniPort); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void _current_StatusChanged(object sender, EventArgs e) { //OnCurrentStatusChanged(EventArgs.Empty); //return; if (Soft.IsUseUISynchronizationContext) { Soft.Send(CurrentStatusChangedCallback, EventArgs.Empty); } else { OnCurrentStatusChanged(EventArgs.Empty); } }
/// <summary> /// /// </summary> /// <param name="soft"></param> public CommuniPortManager(Soft soft) { this.Soft = soft; }
/// <summary> /// /// </summary> /// <param name="soft"></param> public TaskScheduler(Soft soft) { this._soft = soft; }
public SocketListenerManager(Soft soft) { if (soft == null) throw new ArgumentNullException("communiSoft"); this._soft = soft; }