private MainLogic mainLogic; // объект, реализующий логику сервера #endregion Fields #region Constructors public SvcMain() { InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; mainLogic = new MainLogic(); appLog = mainLogic.AppLog; }
private Log appLog; // журнал приложения public SvcMain() { InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; mainLogic = new MainLogic(); appLog = mainLogic.AppLog; }
public SvcMain() { InitializeComponent(); AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; mainLogic = new MainLogic(); appLog = mainLogic.AppLog; checkThread = new Thread(new ThreadStart(CheckStopFile)); }
private MainLogic mainLogic; // ссылка на объект основной логики приложения #endregion Fields #region Constructors /// <summary> /// Конструктор /// </summary> public Calculator(MainLogic mainLogic) { if (mainLogic == null) throw new ArgumentNullException("mainLogic"); if (mainLogic.AppLog == null) throw new ArgumentNullException("mainLogic.AppLog"); this.mainLogic = mainLogic; appLog = mainLogic.AppLog; exprList = new List<string>(); calcEngine = null; }
/// <summary> /// Конструктор /// </summary> public Calculator(MainLogic mainLogic) { if (mainLogic == null) { throw new ArgumentNullException("mainLogic"); } if (mainLogic.AppLog == null) { throw new ArgumentNullException("mainLogic.AppLog"); } this.mainLogic = mainLogic; appLog = mainLogic.AppLog; exprList = new List <string>(); calcEngine = null; }
private Thread thread; // поток взаимодействия с клиентами #endregion Fields #region Constructors /// <summary> /// Конструктор /// </summary> public Comm(MainLogic mainLogic) { if (mainLogic == null) throw new ArgumentNullException("mainLogic"); if (mainLogic.AppLog == null) throw new ArgumentNullException("mainLogic.AppLog"); if (mainLogic.Settings == null) throw new ArgumentNullException("mainLogic.Settings"); // заполнение массива описаний команд CmdDescrs = new string[byte.MaxValue]; for (byte code = 0; code < byte.MaxValue; code++) CmdDescrs[code] = GetCmdDescr(code); // инициализация полей this.mainLogic = mainLogic; appLog = mainLogic.AppLog; settings = mainLogic.Settings; thread = null; terminated = false; tcpListener = null; clients = new List<ClientInfo>(); inBuf = new byte[InBufLenght]; outBuf = new byte[OutBufLenght]; cmdBuf = new List<ModLogic.Command>(); }
private Log appLog; // журнал приложения /// <summary> /// Конструктор /// </summary> public Manager() { mainLogic = new MainLogic(); appLog = mainLogic.AppLog; AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; }