예제 #1
0
파일: Error.cs 프로젝트: wpmyj/c3
 /// <summary>
 ///
 /// </summary>
 /// <param name="soft"></param>
 public ErrorManager(Soft soft)
 {
     if (soft == null)
     {
         throw new ArgumentNullException("soft");
     }
     _soft = soft;
 }
예제 #2
0
파일: SoftManager.cs 프로젝트: wpmyj/c3
        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);
        }
예제 #3
0
파일: SoftManager.cs 프로젝트: hkiaipc/C3
        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;
        }
예제 #4
0
        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);
        }
예제 #5
0
파일: TaskManager.cs 프로젝트: wpmyj/c3
        /// <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);
            }
        }
예제 #6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="soft"></param>
 public CommuniPortManager(Soft soft)
 {
     this.Soft = soft;
 }
예제 #7
0
파일: TaskScheduler.cs 프로젝트: wpmyj/c3
 /// <summary>
 ///
 /// </summary>
 /// <param name="soft"></param>
 public TaskScheduler(Soft soft)
 {
     this._soft = soft;
 }
예제 #8
0
 public SocketListenerManager(Soft soft)
 {
     if (soft == null)
         throw new ArgumentNullException("communiSoft");
     this._soft = soft;
 }
예제 #9
0
파일: TaskScheduler.cs 프로젝트: hkiaipc/C3
 /// <summary>
 /// 
 /// </summary>
 /// <param name="soft"></param>
 public TaskScheduler(Soft soft)
 {
     this._soft = soft;
 }