Пример #1
0
        public EventTimeBarForm()
        {
            InitializeComponent();

            // 载入网页
            var htmlPathWithPort = TCPHelper.fillPortInHtml(Const.htmlPath + @"EventTimeBar\", "index.html");

            this.webKitBrowser1.Navigate(htmlPathWithPort);
            TCPHelper.responceFuncDict.Add("/eventTimeBar/getTopicList", getTopicList);
            TCPHelper.responceFuncDict.Add("/eventTimeBar/getEventsByTopic", getEventsByTopic);
            TCPHelper.responceFuncDict.Add("/eventTimeBar/saveNeo", saveNeo);
        }
Пример #2
0
        public EventCountryForm()
        {
            InitializeComponent();

            // 载入网页
            var listHtmlPathWithPort = TCPHelper.fillPortInHtml(Const.htmlPath + @"WorldMap\", "textList.html");

            this.listWebkitBrowser.Navigate(listHtmlPathWithPort);
            var mapHtmlPathWithPort = TCPHelper.fillPortInHtml(Const.htmlPath + @"WorldMap\", "worldMap.html");

            this.mapWebkitBrowser.Navigate(mapHtmlPathWithPort);
            TCPHelper.responceFuncDict.Add("/eventCountry/changeCountry", changeCountry);
            TCPHelper.responceFuncDict.Add("/eventCountry/getEventsByCountry", getEventsByCountry);
        }