Exemplo n.º 1
0
        public ATP()
        {
            InitializeComponent();
            StationElements ele = StationElements.Open("StationElements.xml", null);

            LoadGraphicElements("StationElements.xml");
            LoadStationTopo("StationTopoloty.xml");
            LoadSecondStation();
            CheckForIllegalCrossThreadCalls = false;
            configdata.ReadConfigData();
            this.KeyPreview = true;
        }
Exemplo n.º 2
0
        private void LoadSecondStation()
        {
            StationElements elements_1 = StationElements.Open("StationElements1.xml", null);

            stationTopoloty_1_ = new StationTopoloty();
            stationTopoloty_1_.Open("StationTopoloty1.xml", elements_1.Elements);

            foreach (var item in elements_1.Elements)
            {
                item.Left += 2000;
            }
            ConnectNodes(stationTopoloty_, stationTopoloty_1_, "201G", "301G");
            ConnectNodes(stationTopoloty_, stationTopoloty_1_, "210G", "306G");
            ConnectNodes(stationTopoloty_1_, stationTopoloty_, "413G", "115G"); //避免轨道连成环索引不方便
            ConnectNodes(stationTopoloty_1_, stationTopoloty_, "416G", "114G"); //避免轨道连成环索引不方便
        }
Exemplo n.º 3
0
 private void LoadGraphicElements(string path)
 {
     stationElements_ = StationElements.Open(path, null);
 }