Beispiel #1
0
        public MainWindow()
        {
            InitializeComponent();
            m_sExecPath = initExePath();
            m_libCmn    = new LibCommon();
            m_libCnvs   = new LibCanvas();
            m_libOdbc   = new LibOdbc();
            m_libOdbc.setLibCommonClass(m_libCmn);
            m_libOdbc.setExecPath(m_sExecPath);

            m_sEnvPath = initEnvPath();
            m_libOdbc.setEnvPath(m_sEnvPath);
            loadEnv();

            odbcLoadEnv();

            m_sMapPath       = m_sEnvPath + "\\東京都";
            m_dBaseLat       = 36.03150;
            m_d18BlockLatAdd = -0.001111;
            m_dStepLatSub    = -0.0000001579;
            //m_d18BlockLatAdd = -0.0011185;
            //m_dStepLatSub = -0.0000001578;
            //m_d18BlockLatAdd = -0.001111;
            //m_dStepLatSub = -0.0000006;
            m_n18BlockLatLast = m_tblEndY[8] - m_tblBaseY[8];
            m_bRetouMode      = false;
            m_tbCrt           = null;
            m_clsObserve      = null;
            m_nClsCardCrtIdx  = -1;
        }
Beispiel #2
0
        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 作動検知");
        }