Exemple #1
0
 /// <summary>
 /// 생성자
 /// </summary>
 /// <param name="main">MainForm에서 넘겨주는 참조</param>
 public DeviceMonitorView(MainForm main)
     : this()
 {
     this.main      = main;
     this.centInfo  = main.CentInfo;
     this.centInfo2 = main.CentInfo2;
     this.provInfo  = main.ProvInfo;
 }
Exemple #2
0
        /// <summary>
        /// 서버 로컬IP를 받아 해당하는 MMF파일을 로드한다.
        /// </summary>
        /// <param name="localIpAddr">서버 로컬IP</param>
        private void InitMmfInfo(string localIpAddr)
        {
            this.mmfMng = new NCasMMFMng();
            this.mmfMng.LoadAllMMF();
            this.centInfo  = this.mmfMng.GetCentInfoByNetId("10.1.0.0");
            this.centInfo2 = this.mmfMng.GetCentInfoByNetId("10.2.0.0");

#if release
            this.provInfo = this.mmfMng.GetProvInfoByNetId(localIpAddr);
#endif

#if debug
            this.provInfo = this.mmfMng.GetProvInfoByNetId("10.136.1.5");
#endif

            if (this.centInfo == null || this.centInfo2 == null || this.provInfo == null)
            {
                MessageBox.Show("데이터파일을 정상적으로 로드하지 못했습니다.", "데이터파일 로드", MessageBoxButtons.OK, MessageBoxIcon.Error);
                throw new Exception("MainForm.InitMmfInfo(string localIpAddr) Method Error!");
            }
        }