Exemple #1
0
        private void 检测ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Conflict_Identification ci = new Conflict_Identification(dm.stationList, dm.HeadwayDic, dm.TrainDic);

            ci.Conflict_Judge();
            ConflictTable = ci.ToDataTable();
        }
Exemple #2
0
 /// <summary>
 ///构造方法,初始化各对象
 /// </summary>
 public PaintForm()
 {
     pictureBox2      = new PictureBox();
     pictureBox2.Size = new Size(TD_Width, TD_Height);
     InitializeComponent();
     this.Size = new Size(TD_Width, TD_Height);
     dm        = new DataManager();
     dm.ReadHeadway(Application.StartupPath + @"\\车站列车安全间隔.csv");
     dm.ReadStation(Application.StartupPath + @"\\沪宁车站信息.csv");
     dm.ReadTrain(Application.StartupPath + @"\\沪宁时刻图.csv");
     dm.ReadDrawStation(Application.StartupPath + @"\\沪宁车站画图信息.csv");
     dm.DivideUpDown();
     dm.AddTra2sta();
     dm.GetStop();
     ci = new Conflict_Identification(dm.stationList, dm.HeadwayDic, dm.TrainDic);
     ci.Conflict_Judge();
     ConflictTable = ci.ToDataTable();
 }