Exemplo n.º 1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        public HallServer(ConfigModel configModel, ILogger ilogger, ConnViewModel connViewModel)
        {
            //获取服务器端参数
            this.configModel   = configModel;
            this.ilogger       = ilogger;
            this.connViewModel = connViewModel;

            //实例化方法类
            dealMessage = new DealMessage(ilogger, connViewModel);
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            //获取服务器端参数
            configModel = ConfigData.GetConfig();
            //获取日志记录实例
            this.ilogger = ILogger.GetInstance();
            //获取实例
            connViewModel = connView.DataContext as ConnViewModel;
        }
Exemplo n.º 3
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="ilogger">日志</param>
 public DealMessage(ILogger ilogger, ConnViewModel connViewModel)
 {
     this.ilogger       = ilogger;
     this.connViewModel = connViewModel;
 }