/// <summary> /// Конструктор с установкой общих параметров конфигурации и log-файла /// </summary> public ServerCommEx(Settings.CommonParams commonParams, Log log) : base() { this.commSettings = new CommSettings(commonParams.ServerHost, commonParams.ServerPort, commonParams.ServerUser, commonParams.ServerPwd, commonParams.ServerTimeout); this.log = log; }
/// <summary> /// Статический конструктор /// </summary> static AppData() { ExeDir = ScadaUtils.NormalDir(Path.GetDirectoryName(Application.ExecutablePath)); ErrLog = new Log(Log.Formats.Full); ErrLog.FileName = ExeDir + ErrFileName; ErrLog.Encoding = Encoding.UTF8; Conn = new SqlCeConnection(); }