public void copySetElement(ClsCard clsCard) { int max, idx; ClsGpsPos clsGpsPosDst; m_dLat = clsCard.m_dLat; m_dLnd = clsCard.m_dLnd; m_sSetNo = clsCard.m_sSetNo; m_sIP = clsCard.m_sIP; m_sSyoNo = clsCard.m_sSyoNo; m_sSyoName = clsCard.m_sSyoName; m_sAddress1 = clsCard.m_sAddress1; m_sAddress2 = clsCard.m_sAddress2; m_sTel1 = clsCard.m_sTel1; m_sTel2 = clsCard.m_sTel2; m_sName = clsCard.m_sName; m_sBikou = clsCard.m_sBikou; m_lstGpsPos.Clear(); max = clsCard.m_lstGpsPos.Count; for (idx = 0; idx < max; idx++) { clsGpsPosDst = new ClsGpsPos(); clsGpsPosDst.copySetElement(clsCard.m_lstGpsPos[idx]); m_lstGpsPos.Add(clsGpsPosDst); } }
private void Window_Loaded(object sender, RoutedEventArgs e) { Type type; string sXmlFile; //this.MaximizeBox sXmlFile = m_sEnvPath + "\\Observe.xml"; type = typeof(ClsObserve); m_clsObserve = (ClsObserve)m_libCmn.DataXmlLoad(sXmlFile, type); if (m_clsObserve == null) { m_clsObserve = new ClsObserve(); } setCrtCardIdx(-1); m_clsCardNew = null; m_cnvsMove = new Canvas(); initMouseEvent(); initMapElement(); initCmbGroup(); initCmbPlaceName(); m_dZoomTime = 1.0; m_cnvsMove.RenderTransform = null; initMapArea(); initBlockWin(); initUnderWin(); m_cardWin = null; startCheckThread(); //m_underWin.dispMsg(""); //m_underWin.dispMsg("持ち去り警報"); //m_underWin.dispMsg("センサー発報中 インプット 7 作動検知"); }
public void SetCrtCardElement(ClsCard clsCard) { int nCrtIdx; nCrtIdx = getCrtCardIdx(); if (nCrtIdx == -1) { return; } m_clsObserve.m_lstClsCard[nCrtIdx].copySetElement(clsCard); udpSendCardSetMessage(clsCard); setCrtCardIdx(-1); m_blockWin.SetListElement(); drawCardMark(); }
public void udpSendCardSetMessage(ClsCard clsCard) { string sData; sData = "SET\r\n"; sData = sData + clsCard.m_sSetNo + "\r\n"; sData = sData + clsCard.m_sIP + "\r\n"; sData = sData + clsCard.m_sSyoNo + "\r\n"; sData = sData + clsCard.m_sSyoName + "\r\n"; sData = sData + clsCard.m_sAddress1 + "\r\n"; sData = sData + clsCard.m_sAddress2 + "\r\n"; sData = sData + clsCard.m_sTel1 + "\r\n"; sData = sData + clsCard.m_sTel2 + "\r\n"; sData = sData + clsCard.m_sName + "\r\n"; sData = sData + clsCard.m_sBikou + "\r\n"; udpSendDataForCenter(sData); udpSendDataForCenter(sData); udpSendDataForCenter(sData); udpSendDataForCenter(sData); udpSendDataForCenter(sData); }
public void setCrtCardWinDisp() { int nCrtIdx; ClsCard clsCard; ClsLatLnd clsLatLnd; if (m_cardWin != null) { return; } nCrtIdx = getCrtCardIdx(); m_cardWin = new CardWin(); m_cardWin.SetMainWindow(this); if (nCrtIdx == -1) { m_clsCardBack = null; m_clsCardNew = new ClsCard(); nCrtIdx = m_clsObserve.m_lstClsCard.Count; m_clsObserve.m_lstClsCard.Add(m_clsCardNew); setCrtCardIdx(nCrtIdx); m_cardWin.SetClsCard(m_clsCardNew); } else { m_clsCardNew = null; m_clsCardBack = new ClsCard(); m_clsCardBack.copySetElement(m_clsObserve.m_lstClsCard[nCrtIdx]); clsCard = m_clsCardBack; clsLatLnd = new ClsLatLnd(); clsLatLnd.m_dLat = clsCard.m_dLat; clsLatLnd.m_dLnd = clsCard.m_dLnd; moveLatLnd(clsLatLnd); m_cardWin.SetClsCard(clsCard); } m_cardWin.Owner = this; m_cardWin.Show(); }
public void SetClsCard(ClsCard clsCard) { m_clsCard = clsCard; }